comments inside blocks

Peter Hansen peter at engcorp.com
Fri Jan 3 15:02:49 CET 2003


P at draigBrady.com wrote:
> 
> Peter Hansen wrote:
> > Okay, good point.  Remember though, that this is also valid
> > Python:
> >
> > for i in range(10):
> >     print i
> >
> > # if we make it to the end, do this
> > else:
> >     print 'loop completed normally!'
> 
> well the else (same level) is never folded along with the for

Good point.  I thought of that only after hitting Send. :-(

-Peter




More information about the Python-list mailing list