Mario Figueiredo wrote:

> In article <[email protected]>,
> [email protected] says...
>> (3) _ is also commonly used as a "don't care" variable name:
>> 
>> a, _, b, _ = get_four_items()  # but I only care about two of them
>> 
> 
> According to the following link, it is actually a double underscore:
> http://docs.python-guide.org/en/latest/writing/style/#idioms

That's third-party documentation, not official, and I strongly disagree with
a couple of those recommendations. But this specific one seems reasonable
enough.


-- 
Steven

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to