> Which of course leads to a SillyPEP for a new keyword, "are", which
> would allow you to write:
>
>>>> a and c are None
>
> instead of the much more verbose
>
>>>> a is None and c is None

How about:

    >>> a is b is None

;)

-- Devin

On Sun, Dec 25, 2011 at 7:27 PM, Roy Smith <[email protected]> wrote:
> In article <[email protected]>,
>  Devin Jeanpierre <[email protected]> wrote:
>
>> The issue here is that "== None" is being used instead of "is None",
>> but I believe that's been covered. Your response doesn't include it,
>> so maybe it's worth restating.
>
> Which of course leads to a SillyPEP for a new keyword, "are", which
> would allow you to write:
>
>>>> a and c are None
>
> instead of the much more verbose
>
>>>> a is None and c is None
> --
> http://mail.python.org/mailman/listinfo/python-list
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to