Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed2.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'nested': 0.07; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'received:184.172': 0.09; 'received:gator410.hostgator.com': 0.09; '~ethan~': 0.09; 'callable': 0.16; 'erlang,': 0.16; 'examples?': 0.16; 'janssen': 0.16; 'really?': 0.16; 'scopes': 0.16; 'typeerror:': 0.16; 'wrote:': 0.18; 'do.': 0.18; 'seems': 0.21; 'header:User-Agent:1': 0.23; 'least': 0.26; 'header:In-Reply- To:1': 0.27; 'steven': 0.31; 'languages': 0.32; 'charset:us- ascii': 0.36; 'list.': 0.37; 'skip:[ 10': 0.38; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'received:173': 0.61; 'name': 0.63; 'levels': 0.65; 'apart': 0.72; 'increase': 0.74; 'back?': 0.84; 'distinguish': 0.84; 'subject:Don': 0.91 Date: Wed, 12 Jun 2013 17:30:36 -0700 From: Ethan Furman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: python-list@python.org Subject: Re: "Don't rebind built-in names*" - it confuses readers References: <51b69332$0$29997$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator410.hostgator.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stoneleaf.us X-BWhitelist: no X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([173.12.184.233]) [173.12.184.233]:53571 X-Source-Auth: ethan+stoneleaf.us X-Email-Count: 1 X-Source-Cap: dG9idWs7dG9idWs7Z2F0b3I0MTAuaG9zdGdhdG9yLmNvbQ== X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371084703 news.xs4all.nl 15902 [2001:888:2000:d::a6]:40137 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:47876 On 06/12/2013 05:04 PM, Mark Janssen wrote: > Steven D'Aprono wrote: >> >> Apart from Erlang, got any other examples? Because it seems to me that in >> languages with nested scopes or namespaces, shadowing higher levels is >> exactly the right thing to do. > > Really? > >--> int="five" >--> [int(i) for i in ["1","2","3"]] > TypeError: str is not callable > > Now how are you going to get the original int type back? --> del int Mark Janssen*, you would increase your credibility if you actually *learned* Python. -- ~Ethan~ *full name used to distinguish from at least one other Mark on the list.