Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #7576
| From | Ben Finney <ben+python@benfinney.id.au> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: dummy, underscore and unused local variables |
| References | <mailman.175.1307979321.11593.python-list@python.org> |
| Date | 2011-06-14 10:39 +1000 |
| Message-ID | <87vcw9tfef.fsf@benfinney.id.au> (permalink) |
| Organization | Unlimited download news at news.astraweb.com |
Tim Johnson <tim@johnsons-web.com> writes: > If I use > for dummy in range(mylimit): > .... > ## or > for _ in range(mylimit): > .... > I get no complaint from pychecker. > I would welcome comments on best practices for this issue. I have argued in the past against overloading the name ‘_’ for this <URL:http://mail.python.org/pipermail/python-list/2008-January/523777.html> since it has other, unrelated, meanings already established. Other responses in that thread are also useful. -- \ “I find the whole business of religion profoundly interesting. | `\ But it does mystify me that otherwise intelligent people take | _o__) it seriously.” —Douglas Adams | Ben Finney
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
dummy, underscore and unused local variables Tim Johnson <tim@johnsons-web.com> - 2011-06-13 07:37 -0800
Re: dummy, underscore and unused local variables Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-06-13 16:02 +0000
Re: dummy, underscore and unused local variables Chris Angelico <rosuav@gmail.com> - 2011-06-14 02:28 +1000
Re: dummy, underscore and unused local variables Ben Finney <ben+python@benfinney.id.au> - 2011-06-14 10:39 +1000
csiph-web