Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!news.glorb.com!news-xfer.nntp.sonic.net!news.astraweb.com!border5.newsrouter.astraweb.com!not-for-mail From: Ben Finney Newsgroups: comp.lang.python Subject: Re: dummy, underscore and unused local variables References: X-Public-Key-ID: 0xAC128405 X-Public-Key-Fingerprint: 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-pubkey.asc X-Post-From: Ben Finney Date: Tue, 14 Jun 2011 10:39:36 +1000 Message-ID: <87vcw9tfef.fsf@benfinney.id.au> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:MBLF+MY6DE9NPj+JmK5q6oRLggo= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Lines: 22 Organization: Unlimited download news at news.astraweb.com NNTP-Posting-Host: a5340fc4.news.astraweb.com X-Trace: DXC=6AUKlV?BkhClVZHQGRZg_EL?0kYOcDh@JW\:Hm@YlDbJ83@2Tm: 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 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