Message298747
Example:
class BrokenMapping:
def __getitem__(self, key):
1/0
# this silences the ZeroDivisionError and raises KeyError('world')
'hello {world}'.format_map(BrokenMapping())
I have tried this on several different CPython versions on Ubuntu 14.04
(including the latest Python 3.7.0a0 from github) and they all do this.
PyPy passes the ZeroDivisionError through correctly. |
|
Date |
User |
Action |
Args |
2017-07-20 19:53:55 | Akuli | set | recipients:
+ Akuli |
2017-07-20 19:53:55 | Akuli | set | messageid: <1500580435.37.0.778911522194.issue30978@psf.upfronthosting.co.za> |
2017-07-20 19:53:55 | Akuli | link | issue30978 messages |
2017-07-20 19:53:55 | Akuli | create | |
|