break in a module

Ian Kelly ian.g.kelly at gmail.com
Thu Jun 16 19:57:44 EDT 2011


On Tue, Jun 14, 2011 at 4:57 PM, MRAB <python at mrabarnett.plus.com> wrote:
> To me, the obvious choice would be "return", not "break".

No, "return" returns a value.  Modules do not return values.
Therefore "return" would be inappropriate.  If this feature were
deemed desirable, "break" would make more sense to me.



More information about the Python-list mailing list