New submission from Dirkjan Ochtman <dirk...@ochtman.nl>: d...@miles ~ $ python2.7 Python 2.7 (r27:82500, Oct 4 2010, 10:01:41) [GCC 4.3.4] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> {}.pop('a') Traceback (most recent call last): File "<stdin>", line 1, in <module> KeyError: 'pop(): dictionary is empty' >>> {'a': 'b'}.pop('c') Traceback (most recent call last): File "<stdin>", line 1, in <module> KeyError: 'c'
IMO the former exception should be in line with normal KeyErrors. ---------- messages: 119778 nosy: djc priority: normal severity: normal status: open title: {}.pop('a') raises non-standard KeyError exception _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10221> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com