[issue35712] Make NotImplemented unusable in boolean context
Vedran Čačić
report at bugs.python.org
Mon Nov 9 13:10:51 EST 2020
Vedran Čačić <vedgar at gmail.com> added the comment:
... as it probably should: look at https://bugs.python.org/msg349303
Yes, filtering comprehensions are a frequently used niche, and too long in the "official" parlance. I seem to recall that
[x in mylist if x is not None]
(instead of triple-x version) was rejected because it was too hard to parse. Maybe now we can really implement it?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35712>
_______________________________________
More information about the Python-bugs-list
mailing list