defining classes within loops?
Roy Smith
roy at panix.com
Fri Jul 27 08:23:38 EDT 2001
The documentation for the "continue" statement says:
> continue may only occur syntactically nested in a for or while loop,
> but not nested in a function or class definition
Just out of curiosity, how many people have ever written a function or
class definition nested inside a loop? Seems like sort of a strange thing
to do, although I suppose it might be useful in some situations.
More information about the Python-list
mailing list