Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!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.030 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; '(especially': 0.07; 'subject:question': 0.10; 'jan': 0.12; 'builtins': 0.16; 'extraneous': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'reedy': 0.16; 'subject:class': 0.16; 'wrote:': 0.18; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'another': 0.32; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'there': 0.35; 'subject:regarding': 0.36; 'done': 0.36; 'similar': 0.36; 'starting': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'times': 0.62; 'edwards': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ZorgC0WrfiFa/RYAJDvuW4Q6VBsnvPgd+oGMo+DmO60=; b=SBmf30BKQ/ILtgOQUrRIoh9woZTCwakO0927/HKZxhGa3S0UpvPFz0vgY79ZQ0chAj wYUCH6SF1THDXZ2ZfQ+lfrCYgAnBDXD0k2H60PJV1IRdZXy8ey7sanfqqE48etOn/i2/ PHsKp0+5hjXMZCU1CmaG5l9HepM17xrLHp/w/C5AL3Eme+WL0fGWi6XxWRrsql6RAtVk fQzW8QZwPo3PoDezxROWdq17ruE3yLlcwBwcrxMTM4rtJs2tY4x0UWBWjdtWVZ1zcmjw G4Qgjelu6TrCnfWU4o8Q7TBodpHVh/R77OlKar6UXqfyuNHxYLGl7TIFYWGdG51ZGcfx h4WA== MIME-Version: 1.0 X-Received: by 10.58.214.105 with SMTP id nz9mr6822041vec.58.1370904848026; Mon, 10 Jun 2013 15:54:08 -0700 (PDT) In-Reply-To: References: Date: Tue, 11 Jun 2013 08:54:07 +1000 Subject: Re: Newbie: question regarding references and class relationships From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1370904856 news.xs4all.nl 15934 [2001:888:2000:d::a6]:56428 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:47613 On Tue, Jun 11, 2013 at 8:39 AM, Grant Edwards wrote: > On 2013-06-10, Terry Jan Reedy wrote: > >> Another principle similar to 'Don't add extraneous code' is 'Don't >> rebind builtins'. > > OK, we've all done it by accident (especially when starting out), but > are there people that rebind builtins intentionally? There are times when you don't care what you shadow, like using id for a database ID. ChrisA