Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:module': 0.04; 'mrab': 0.05; 'pm,': 0.10; 'wrote:': 0.14; '"return"': 0.16; 'desirable,': 0.16; 'tue,': 0.17; 'header:In-Reply-To:1': 0.21; 'values.': 0.23; 'received:209.85.161.46': 0.23; 'received:mail- fx0-f46.google.com': 0.23; 'modules': 0.26; 'received:209.85.161': 0.26; 'message-id:@mail.gmail.com': 0.28; 'value.': 0.32; 'to:addr :python-list': 0.33; 'received:google.com': 0.37; 'received:209.85': 0.37; 'subject:: ': 0.38; 'received:209': 0.39; 'to:addr:python.org': 0.39; 'feature': 0.40; 'more': 0.60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=HJ4phX+0y0zfiOYB6If2Wrioqwn5wHDJCokTKvpra4A=; b=ARX83WLSUoQal08EFE0fB47I3R2G66F/5PfKw/excxG61KrrfcbBSFnTnd8Xz0o9uv cqBjLg32xV84Knw/bYVCTAcclgTNCstsBuWoAZ56wRgXOJMN0+A4onCm3Vm21pBXczet vOlA1+vVS7e1dzNq1TLkRfRUjP4LcNU+wN8No= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=Twq0S5GwBZG3j2yLYPP5nY5hURHfJbSGuyi3sskMEErMtlDvlcPHYQtMuU2Mxiia3f bBblPtybn9VJ20H1PDYaOBulMohL62IWCugHXm6/qGbVu6nOMjSREl40tnZqLHp+ht7c 4PCdk4GIqrsRAtrSNWLaDVvvGd1HfOkaFCnz8= MIME-Version: 1.0 In-Reply-To: <4DF7E75E.9000907@mrabarnett.plus.com> References: <4DF7E75E.9000907@mrabarnett.plus.com> From: Ian Kelly Date: Thu, 16 Jun 2011 17:57:44 -0600 Subject: Re: break in a module To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 6 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1308268695 news.xs4all.nl 49179 [::ffff:82.94.164.166]:52375 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:7778 On Tue, Jun 14, 2011 at 4:57 PM, MRAB 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.