New submission from Florent Xicluna:
Python accepts both syntaxes:
if not item in some_list and not item is None:
return item
and
if item not in some_list and item is not None:
return item
In the first form, you identify 5 operators: not, in, and, not and in
In the
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
assignee: docs@python -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21540
___
___
Changes by Steven Myint c...@stevenmyint.com:
--
nosy: +myint
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21540
___
___
Python-bugs-list mailing
Changes by Ian Cordasco graffatcolmin...@gmail.com:
--
nosy: +icordasc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21540
___
___
Barry A. Warsaw added the comment:
Agreed! I'll update the PEP. Thanks.
--
assignee: - barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21540
___
Changes by Barry A. Warsaw ba...@python.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21540
___