'_' and '__'

Karsten Hilbert Karsten.Hilbert at gmx.net
Sun May 27 04:40:08 EDT 2018


On Sun, May 27, 2018 at 10:36:30AM +1000, Ben Finney wrote:

> Nick also explains that, because the name ‘_’ has too many conventional
> meanings already, the name ‘__’ is better for “don't need this value but
> I am required to specify a name”.

_() is often bound to gettext.gettext() in the global
namespace, so we'd better avoid that or else ...

	[ _(_) for _ in '123' ]

... will fail :-)

Karsten
-- 



More information about the Python-list mailing list