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 rhettinger
Recipients rhettinger, serhiy.storchaka, xiang.zhang
Date 2016-09-28.05:46:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Perhaps:  _cache.pop(next(iter(_cache)))

The for-loop version indirect about what it is trying to do and relies on an obscure quirk of exactly when it is an error to mutate while iterating.

I do like that the side-effect of the compact dict is that is lets us choose the oldest entry to evict.
Date User Action Args
2016-09-28 05:46:46rhettingersetrecipients: + rhettinger, serhiy.storchaka, xiang.zhang
2016-09-28 05:46:46rhettingersetmessageid: <>
2016-09-28 05:46:46rhettingerlinkissue28293 messages
2016-09-28 05:46:45rhettingercreate