Message160955
> "popitem()
> Remove and return an arbitrary (key, value) pair from the dictionary. Raises KeyError if the dict is empty. Use next(iter(d)) to return an arbitrary pair without removing it."
Actually, next(iter(d)) on a dict returns an arbitrary *key*; if you want
a pair, you need next(iter(d.items())). |
|
Date |
User |
Action |
Args |
2012-05-17 08:43:55 | nadeem.vawda | set | recipients:
+ nadeem.vawda, rhettinger, terry.reedy, eric.araujo, docs@python |
2012-05-17 08:43:55 | nadeem.vawda | set | messageid: <1337244235.19.0.526927653271.issue14836@psf.upfronthosting.co.za> |
2012-05-17 08:43:54 | nadeem.vawda | link | issue14836 messages |
2012-05-17 08:43:54 | nadeem.vawda | create | |
|