Message119778
| 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: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 |
|