Message214998
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. |
|
Date |
User |
Action |
Args |
2014-03-27 23:20:27 | josh.r | set | recipients:
+ josh.r, twouters, Rosuav |
2014-03-27 23:20:26 | josh.r | set | messageid: <1395962426.93.0.120147150957.issue20739@psf.upfronthosting.co.za> |
2014-03-27 23:20:26 | josh.r | link | issue20739 messages |
2014-03-27 23:20:26 | josh.r | create | |
|