[issue35712] Make NotImplemented unusable in boolean context
Vedran Čačić
report at bugs.python.org
Fri Aug 9 13:52:50 EDT 2019
Vedran Čačić <vedgar at gmail.com> added the comment:
Another reason why current behavior is confusing: what do you think
filter(2 .__eq__, 'text')
should yield? :-o
(Yes, I know this isn't the right way to do it, but
(element for element in 'text' if element == 2)
is twice longer.:)
----------
nosy: +veky
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35712>
_______________________________________
More information about the Python-bugs-list
mailing list