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

Heike C. Zimmerer usenet04q1 at hczim.de
Fri Jul 30 05:19:44 EDT 2004


Dave Benjamin <ramen at lackingtalent.com> writes:

> In Python, it's possible to use _ multiple times in the same expression,

There is, however, one objection to the use of _ as a placeholder for
a dummy variable: it is used by the gettext module.  So if a program
may be subject to internationalization, it is advisable to keep this
name reserved, or you may run into problems.




More information about the Python-list mailing list