Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #47619

Re: Newbie: question regarding references and class relationships

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 <davea@davea.name>
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 <davea@davea.name>
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 <kp4jf4$5fu$1@dont-email.me> <mailman.2967.1370872174.3114.python-list@python.org> <kp4lrg$hfi$2@dont-email.me> <mailman.2969.1370874511.3114.python-list@python.org> <kp4o3u$pv$1@dont-email.me> <mailman.2970.1370876729.3114.python-list@python.org> <kp4qi6$dno$1@dont-email.me> <mailman.2972.1370879753.3114.python-list@python.org> <kp4tf4$1on$1@dont-email.me> <mailman.2983.1370893881.3114.python-list@python.org> <kp5bot$sh2$1@dont-email.me> <mailman.2988.1370902047.3114.python-list@python.org> <kp5kjd$ppk$1@reader1.panix.com> <CAPTjJmosRs7gXrQ12ph1+Yg1dcsFNzykdP=3j0NFj1tedpiBjw@mail.gmail.com>
In-Reply-To <CAPTjJmosRs7gXrQ12ph1+Yg1dcsFNzykdP=3j0NFj1tedpiBjw@mail.gmail.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2999.1370906794.3114.python-list@python.org> (permalink)
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

Show key headers only | View raw


On 06/10/2013 06:54 PM, Chris Angelico wrote:
> On Tue, Jun 11, 2013 at 8:39 AM, Grant Edwards <invalid@invalid.invalid> wrote:
>> On 2013-06-10, Terry Jan Reedy <tjreedy@udel.edu> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Newbie: question regarding references and class relationships Rui Maciel <rui.maciel@gmail.com> - 2013-06-10 14:18 +0100
  Re: Newbie: question regarding references and class relationships Roy Smith <roy@panix.com> - 2013-06-10 09:35 -0400
    Re: Newbie: question regarding references and class relationships Rui Maciel <rui.maciel@gmail.com> - 2013-06-10 14:57 +0100
      Re: Newbie: question regarding references and class relationships Rui Maciel <rui.maciel@gmail.com> - 2013-06-10 15:00 +0100
      Re: Newbie: question regarding references and class relationships Ian Kelly <ian.g.kelly@gmail.com> - 2013-06-10 13:56 -0600
        Re: Newbie: question regarding references and class relationships Rick Johnson <rantingrickjohnson@gmail.com> - 2013-06-11 17:02 -0700
  Re: Newbie: question regarding references and class relationships Peter Otten <__peter__@web.de> - 2013-06-10 15:49 +0200
    Re: Newbie: question regarding references and class relationships Rui Maciel <rui.maciel@gmail.com> - 2013-06-10 14:59 +0100
      Re: Newbie: question regarding references and class relationships Peter Otten <__peter__@web.de> - 2013-06-10 16:28 +0200
        Re: Newbie: question regarding references and class relationships Rui Maciel <rui.maciel@gmail.com> - 2013-06-10 15:38 +0100
          Re: Newbie: question regarding references and class relationships Peter Otten <__peter__@web.de> - 2013-06-10 17:05 +0200
            Re: Newbie: question regarding references and class relationships Rui Maciel <rui.maciel@gmail.com> - 2013-06-10 16:20 +0100
              Re: Newbie: question regarding references and class relationships Peter Otten <__peter__@web.de> - 2013-06-10 17:55 +0200
                Re: Newbie: question regarding references and class relationships Rui Maciel <rui.maciel@gmail.com> - 2013-06-10 17:09 +0100
                Re: Newbie: question regarding references and class relationships Peter Otten <__peter__@web.de> - 2013-06-10 19:07 +0200
                Re: Newbie: question regarding references and class relationships Rui Maciel <rui.maciel@gmail.com> - 2013-06-10 18:42 +0100
                Re: Newbie: question regarding references and class relationships Dave Angel <davea@davea.name> - 2013-06-10 15:36 -0400
                Re: Newbie: question regarding references and class relationships Rui Maciel <rui.maciel@gmail.com> - 2013-06-10 21:31 +0100
                Re: Newbie: question regarding references and class relationships Terry Jan Reedy <tjreedy@udel.edu> - 2013-06-10 15:51 -0400
                Re: Newbie: question regarding references and class relationships Rui Maciel <rui.maciel@gmail.com> - 2013-06-10 21:13 +0100
                Re: Newbie: question regarding references and class relationships Terry Jan Reedy <tjreedy@udel.edu> - 2013-06-10 18:07 -0400
                Re: Newbie: question regarding references and class relationships Grant Edwards <invalid@invalid.invalid> - 2013-06-10 22:39 +0000
                Re: Newbie: question regarding references and class relationships Chris Angelico <rosuav@gmail.com> - 2013-06-11 08:54 +1000
                Re: Newbie: question regarding references and class relationships Tim Chase <python.list@tim.thechases.com> - 2013-06-10 18:24 -0500
                Re: Newbie: question regarding references and class relationships Dave Angel <davea@davea.name> - 2013-06-10 19:26 -0400
                Re: Newbie: question regarding references and class relationships Jason Swails <jason.swails@gmail.com> - 2013-06-10 23:49 -0400
  Re: Newbie: question regarding references and class relationships Terry Jan Reedy <tjreedy@udel.edu> - 2013-06-10 15:54 -0400
    Re: Newbie: question regarding references and class relationships Rui Maciel <rui.maciel@gmail.com> - 2013-06-10 21:09 +0100
  Re: Newbie: question regarding references and class relationships Rick Johnson <rantingrickjohnson@gmail.com> - 2013-06-11 16:50 -0700
    Re: Newbie: question regarding references and class relationships Rui Maciel <rui.maciel@gmail.com> - 2013-06-13 13:06 +0100
      Re: Newbie: question regarding references and class relationships Chris Angelico <rosuav@gmail.com> - 2013-06-14 00:07 +1000
        Re: Newbie: question regarding references and class relationships Rui Maciel <rui.maciel@gmail.com> - 2013-06-13 19:23 +0100

csiph-web