Vedran Čačić <[email protected]> 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 <[email protected]>
<https://bugs.python.org/issue35712>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com