As most of my Python involves localized Django, I twitch every time I see `_` used for anything other than some variation of gettext.
Re:Self Hell in Python
by lazzlazzlazz on Sunday January 04, 2015 @03:19PM
(#8835660)
Weird, since the gettext use-case is definitely the least idiomatic and least common use of `_`.
As I said, most of my Python involves localized Django. So gettext is used everywhere and (apart from the REPL) it's the other uses of `_` that are the odd ones out.
that's why you should use '__' as throw-away variable (two underscores)
* As a throw-away variable:
* As a gettext call: * And at the interactive prompt as the result of the previous expression: