Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #47657
| From | Peter Otten <__peter__@web.de> |
|---|---|
| Subject | Re: "Don't rebind built-in names*" - it confuses readers |
| Date | 2013-06-11 14:06 +0200 |
| Organization | None |
| References | <kp5q5o$fj1$1@ger.gmane.org> <mailman.3011.1370934571.3114.python-list@python.org> <2eb38e14-55ea-4fe2-9108-9a13ef120a73@s2g2000pbz.googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3018.1370952362.3114.python-list@python.org> (permalink) |
rusi wrote: > On Jun 11, 12:09 pm, Peter Otten <__pete...@web.de> wrote: >> Terry Jan Reedy wrote: >> > Many long-time posters have advised "Don't rebind built-in names*. >> >> I'm in that camp, but I think this old post by Guido van Rossum is worth >> reading to put the matter into perspective: > > Not sure what you are saying Peter… If it is this (taken without > context): > >> (Not that it isn't a good idea to avoid obvious clashes -- >> 'str' for string variables and 'type' for type variables being the >> most obvious stumbling blocks.) > > then I guess we are saying the same thing?? > > If however we consider the context of that message: > First there was only open, then there came file, and file was > considered better than open, now again file seems to have disappeared > from python3… and this message is written in the context of making the > 'kosherness' of one python generation become the *different* > kosherness of the next… > > then what the message of the Guido-quote is, is not clear (at least to > me). As I understand it we should be a bit more relaxed about the matter of shading builtins with local variables than we usually are ;)
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: "Don't rebind built-in names*" - it confuses readers Peter Otten <__peter__@web.de> - 2013-06-11 09:09 +0200
Re: "Don't rebind built-in names*" - it confuses readers rusi <rustompmody@gmail.com> - 2013-06-11 04:12 -0700
Re: "Don't rebind built-in names*" - it confuses readers Peter Otten <__peter__@web.de> - 2013-06-11 14:06 +0200
Re: "Don't rebind built-in names*" - it confuses readers Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-11 13:34 +0000
Re: "Don't rebind built-in names*" - it confuses readers Rick Johnson <rantingrickjohnson@gmail.com> - 2013-06-11 08:43 -0700
Re: "Don't rebind built-in names*" - it confuses readers Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-06-11 17:29 +0100
csiph-web