I am new to python. I learning this stuff because google app engine doesn't allow php.
Python is touted to be an easy and friendly language to use. But I find trying to tamper with an existing code causes indentation errors.
For example: this piece of code
class SearchThread(Thread):
def __init__(self, s, q):
Thread.__init__(self)
self.s = s
self.q = q
self.results = []
produces an error
but
class SearchThread(Thread):
def __init__(self, s, q):
Thread.__init__(self)
self.s = s
self.q = q
self.results = []
doesn't give an error!
isn't this a bit silly?
Why python works this way?
Edit: Now I get it! Thanks for clearing this up. I think having spaces is pretty neat. It never struck me that spaces could be used in the place of braces.