comments inside blocks [WAS: Re: Best Python editor (under Linux)]

Gerrit Holl gerrit at nl.linux.org
Thu Jan 2 09:21:44 EST 2003


P_spam_ at draigBrady.com schreef op donderdag  2 januari om 15:01:08 +0000:
> However the folding seems wrong for python. For the
> following code the comment is folded along with
> the for statement?
> 
> for i in range(10):
> 	a=1
> #comment

It should, because...

>>> None
>>> for i in range(10):
...    print i
... #...
...    print i**2

...runs fine at my machine, apparantly it's permitted.

yours,
Gerrit Holl.

-- 
Asperger Syndroom - een persoonlijke benadering:
	http://people.nl.linux.org/~gerrit/
Het zijn tijden om je zelf met politiek te bemoeien:
	http://www.sp.nl/





More information about the Python-list mailing list