Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.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.041 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; '(especially': 0.07; 'try:': 0.09; 'subject:question': 0.10; 'jan': 0.12; 'builtins': 0.16; 'extraneous': 0.16; 'reedy': 0.16; 'subject:class': 0.16; 'wrote:': 0.18; 'replacing': 0.19; '>>>': 0.22; 'input': 0.22; 'header:User-Agent:1': 0.23; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'another': 0.32; 'except': 0.35; 'but': 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; 'pm,': 0.38; 'to:addr:python.org': 0.39; "you're": 0.61; 'times': 0.62; 'received:74.208': 0.68; 'received:74.208.4.194': 0.84; 'edwards': 0.91; '2013': 0.98 Date: Mon, 10 Jun 2013 19:26:18 -0400 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Newbie: question regarding references and class relationships References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:ZU5bmZXqDfBQ8GKsghOT7qakB6Cc6WP7ngzviDd+Rab Rzcql0e0vBIzQZQxX1/hP6wbx1gHoDQrfmnYUSROMVGgB83sQU 01ikN4BN1fVkrttM8/UbzVDRcobNtqIA9vKeolmkNPOuSEMP6w zxC7fFLvz87yuWq2lEd7aeCfhPZUBo7G4cuBLxi/xjzZIa6V08 8fIe46k3isKK/PCdl3+kjLjkmxX+RXqslkllpquoI6+GFp4dEK lyD/szBsihyT2Z6okYW2iyGRFaP02SzRrKkCgCDDu7KRunHzSW yzQ02mxoSGxocSyFAA0PUsyhkbLuKnIizh7EqBhC94vYXur8w= = 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: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1370906794 news.xs4all.nl 15865 [2001:888:2000:d::a6]:46562 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:47619 On 06/10/2013 06:54 PM, Chris Angelico wrote: > 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 > And times where you're deliberately replacing a built-in try: input = raw_input except .... -- DaveA