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 djc
Recipients djc
Date 2010-10-28.13:26:40
SpamBayes Score 1.916109e-06
Marked as misclassified No
Message-id <1288272402.21.0.117850725041.issue10221@psf.upfronthosting.co.za>
In-reply-to
Content
djc@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.
History
Date User Action Args
2010-10-28 13:26:42djcsetrecipients: + djc
2010-10-28 13:26:42djcsetmessageid: <1288272402.21.0.117850725041.issue10221@psf.upfronthosting.co.za>
2010-10-28 13:26:40djclinkissue10221 messages
2010-10-28 13:26:40djccreate