[issue37643] Except clause

Eric V. Smith report at bugs.python.org
Sun Jul 21 10:55:21 EDT 2019


Eric V. Smith <eric at trueblade.com> added the comment:

Yes, this should be discussed on python-ideas first, so I'm closing it here.

But to be honest with you, there's really no chance this would get accepted. It's just too easy to do it with existing list comprehension syntax, which is much more general purpose.

>>> [v for v in [1, 2, 3, 4, 5] if not v in [2]]
[1, 3, 4, 5]

----------
nosy: +eric.smith
resolution:  -> postponed
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37643>
_______________________________________


More information about the Python-bugs-list mailing list