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 bup
Recipients bup, docs@python
Date 2018-07-16.06:00:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531720827.11.0.56676864532.issue34123@psf.upfronthosting.co.za>
In-reply-to
Content
https://docs.python.org/3/library/stdtypes.html#dict.popitem


`dict.popitem` no longer returns an "arbitrary" (key, value) pair as the documentation suggests. Rather, it always returns the pair whose key was most recently *inserted* (ie., the last entry in `dk_entries`).

Perhaps the docs could reflect that this method is now always LIFO rather arbitrary now that insertion order is guaranteed?
History
Date User Action Args
2018-07-16 06:00:27bupsetrecipients: + bup, docs@python
2018-07-16 06:00:27bupsetmessageid: <1531720827.11.0.56676864532.issue34123@psf.upfronthosting.co.za>
2018-07-16 06:00:27buplinkissue34123 messages
2018-07-16 06:00:26bupcreate