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 Dennis Sweeney
Recipients Dennis Sweeney, methane, remi.lapeyre, rhettinger, serhiy.storchaka
Date 2020-06-09.02:01:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1591668083.66.0.934535048399.issue40890@roundup.psfhosted.org>
In-reply-to
Content
Here's a workaround that's possible with PR 20749 applied:

>>> d = {"a":1, "b":2} # fill up the dict...
>>> DICT = object()
>>> d[DICT] = d
>>> items = d.items()
>>> del d
>>>
>>> d = items.mapping[DICT].pop(DICT)
>>> d
{'a': 1, 'b': 2}
History
Date User Action Args
2020-06-09 02:01:23Dennis Sweeneysetrecipients: + Dennis Sweeney, rhettinger, methane, serhiy.storchaka, remi.lapeyre
2020-06-09 02:01:23Dennis Sweeneysetmessageid: <1591668083.66.0.934535048399.issue40890@roundup.psfhosted.org>
2020-06-09 02:01:23Dennis Sweeneylinkissue40890 messages
2020-06-09 02:01:23Dennis Sweeneycreate