Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #7778

Re: break in a module

References <BANLkTinfUsHXuF5j5XjTMhiQXQKNi4ZSGA@mail.gmail.com> <4DF7E75E.9000907@mrabarnett.plus.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date 2011-06-16 17:57 -0600
Subject Re: break in a module
Newsgroups comp.lang.python
Message-ID <mailman.47.1308268695.1164.python-list@python.org> (permalink)

Show all headers | View raw


On Tue, Jun 14, 2011 at 4:57 PM, MRAB <python@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.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: break in a module Ian Kelly <ian.g.kelly@gmail.com> - 2011-06-16 17:57 -0600

csiph-web