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 sandrobarna
Recipients larry, sandrobarna
Date 2020-11-10.13:39:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1605015582.35.0.628227429995.issue42310@roundup.psfhosted.org>
In-reply-to
Content
from collections import defaultdict
d = defaultdict(list)
for _ in d['a']: pass
print(d.keys())

For loop creates element with key 'a'. Is it expected behavior?
History
Date User Action Args
2020-11-10 13:39:42sandrobarnasetrecipients: + sandrobarna, larry
2020-11-10 13:39:42sandrobarnasetmessageid: <1605015582.35.0.628227429995.issue42310@roundup.psfhosted.org>
2020-11-10 13:39:42sandrobarnalinkissue42310 messages
2020-11-10 13:39:42sandrobarnacreate