[issue20739] PEP 463 (except expression) implementation
Josh Rosenberg
report at bugs.python.org
Fri Mar 28 00:20:26 CET 2014
Josh Rosenberg added the comment:
It's not part of the PEP, but what happens with the new syntax if there is an existing exception context? Some utilities (e.g. functools.lru_cache) use dict.get over a try/except because they operate under the assumption that they may be invoked within an except block, and must leave the exception context (if any) unmodified.
It seems like something intended to serve as a general replacement for non-exception raising functions like dict.get should have similar exception context preserving semantics.
----------
nosy: +josh.rosenberg
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20739>
_______________________________________
More information about the Python-bugs-list
mailing list