statements and blocks
rdudfield at my-deja.com
rdudfield at my-deja.com
Sat Jan 29 00:17:29 EST 2000
Speaking of blocks, is there a way to show where the block ends?
I have been caught a few times doing this:
class b():
def asdf():
print 'a'
if bla:
print 'a'
print 'a'
... more than a page of stuff.
# method is supposed to be in the classes scope.
def qwer():
print 'a'
print 'a'
print 'a'
Basically because the function asdf is more than a page long.
I find indentation is better in most cases except this. This isn't too
much trouble, as I usually find the problem pretty quickly. However
occasionally I waste a bit too much time on it than I'd like to :)
Rene.
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list