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 Akuli
Recipients Akuli
Date 2017-07-20.19:53:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1500580435.37.0.778911522194.issue30978@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-07-20 19:53:55Akulisetrecipients: + Akuli
2017-07-20 19:53:55Akulisetmessageid: <1500580435.37.0.778911522194.issue30978@psf.upfronthosting.co.za>
2017-07-20 19:53:55Akulilinkissue30978 messages
2017-07-20 19:53:55Akulicreate