Assigning to None
Rocco Moretti
roccomoretti at hotpop.com
Sun Jul 3 12:39:02 EDT 2005
François Pinard wrote:
> [Rocco Moretti]
>
>
>>foo, bar, _ = gen_tuple(stuff)
>
>
>>as '_' is already special cased (last result in interactive mode), and
>>is already used for "don't care" sematics in Prolog.
>
>
> `_' is also the `gettext' function in internationalised programs. It so
> seems that `_' is in great demand! :-)
Hm, then assigning to '_' might not be the best idea in
internationalized programs, then. Well, you still have '_'*2, '_'*3,
'_'*4, etc.
More information about the Python-list
mailing list