Message119778
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. |
|
Date |
User |
Action |
Args |
2010-10-28 13:26:42 | djc | set | recipients:
+ djc |
2010-10-28 13:26:42 | djc | set | messageid: <1288272402.21.0.117850725041.issue10221@psf.upfronthosting.co.za> |
2010-10-28 13:26:40 | djc | link | issue10221 messages |
2010-10-28 13:26:40 | djc | create | |
|