what does 'for _ in range()' mean?

Peter Otten __peter__ at web.de
Wed Jul 28 16:59:41 CEST 2004


Skip Montanaro wrote:

> 
>     >> Is pychecker aware of this convention ...
> 
>     Peter> Found in Config.py:
> 
>     Peter> _DEFAULT_UNUSED_LIST = [ '_', 'empty', 'unused', 'dummy', ]
> 
> One might consider adding 'i' to that list.  If nothing else, it would
> avoid
> a bunch of warnings...  ;-)

All but "_" work as prefix, too, so that could avoid a bit too much...

Peter



More information about the Python-list mailing list