Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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; 'exception,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:hide': 0.09; '>on': 0.16; 'message-id:@4ax.com': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:Not': 0.16; 'subject:possible': 0.16; 'undefined)': 0.16; 'valueerror,': 0.16; 'wrote:': 0.18; 'wed,': 0.18; "shouldn't": 0.24; 'url:home': 0.24; 'header:X-Complaints-To:1': 0.27; 'am,': 0.29; 'raise': 0.29; '(since': 0.31; 'text': 0.33; 'equal': 0.35; 'charset:us-ascii': 0.36; 'should': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'dave': 0.60; 'length': 0.61; '2015': 0.84; 'angel': 0.91; 'edwards': 0.91; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Not possible to hide local variables Date: Thu, 30 Apr 2015 08:53:51 -0400 Organization: IISS Elusive Unicorn References: <874mo0zoz2.fsf@Equus.decebal.nl> <554193F1.5050109@davea.name> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-68-176-228.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1430398447 news.xs4all.nl 2958 [2001:888:2000:d::a6]:38548 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:89631 On Wed, 29 Apr 2015 22:31:13 -0400, Dave Angel declaimed the following: >On 04/29/2015 10:16 AM, Grant Edwards wrote: > >> raise ParameterError, 'Parameter has to be an int' >> if n < 0: > >Better: if length < 0: (since n is undefined) > >> raise ValueError, 'Parameter should be greater or equal 2' Given the text in the exception, shouldn't that be if length < 2: -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/