This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author josh.r
Recipients Rosuav, josh.r, twouters
Date 2014-03-27.23:20:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1395962426.93.0.120147150957.issue20739@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-03-27 23:20:27josh.rsetrecipients: + josh.r, twouters, Rosuav
2014-03-27 23:20:26josh.rsetmessageid: <1395962426.93.0.120147150957.issue20739@psf.upfronthosting.co.za>
2014-03-27 23:20:26josh.rlinkissue20739 messages
2014-03-27 23:20:26josh.rcreate