Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #86540
| References | <mclca6$iie$1@ger.gmane.org> <CAPTjJmppMhBuLy=LMC=ycN0RYE9Jp8BVZbdSeqBZupd_7Nwxfw@mail.gmail.com> |
|---|---|
| Subject | Re: Python Worst Practices |
| From | Simon Ward <simon+python@bleah.co.uk> |
| Date | 2015-02-26 19:36 +0000 |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.19284.1424981390.18130.python-list@python.org> (permalink) |
On 25 February 2015 21:24:37 GMT+00:00, Chris Angelico <rosuav@gmail.com> wrote: >On Thu, Feb 26, 2015 at 7:45 AM, Mark Lawrence ><breamoreboy@yahoo.co.uk> wrote: >> http://www.slideshare.net/pydanny/python-worst-practices >> >> Any that should be added to this list? Any that be removed as not >that bad? > >Remove the complaint about id. It's an extremely useful variable name, >and you hardly ever need the function. You can add one character and avoid the conflict with "id_" and not require anyone else maintaining the code to think about it. As rare as the conflict is, I think the ease of avoiding it makes the extra character a practical defensive technique. I agree it is not a worst case. Simon
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Python Worst Practices Simon Ward <simon+python@bleah.co.uk> - 2015-02-26 19:36 +0000
csiph-web