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 nadeem.vawda
Recipients docs@python, eric.araujo, nadeem.vawda, rhettinger, terry.reedy
Date 2012-05-17.08:43:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1337244235.19.0.526927653271.issue14836@psf.upfronthosting.co.za>
In-reply-to
Content
> "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())).
History
Date User Action Args
2012-05-17 08:43:55nadeem.vawdasetrecipients: + nadeem.vawda, rhettinger, terry.reedy, eric.araujo, docs@python
2012-05-17 08:43:55nadeem.vawdasetmessageid: <1337244235.19.0.526927653271.issue14836@psf.upfronthosting.co.za>
2012-05-17 08:43:54nadeem.vawdalinkissue14836 messages
2012-05-17 08:43:54nadeem.vawdacreate