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 Jim Fasarakis-Hilliard
Recipients Jim Fasarakis-Hilliard, hung son luong
Date 2020-06-03.08:35:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1591173313.57.0.73202670869.issue40852@roundup.psfhosted.org>
In-reply-to
Content
This isn't an issue, `value` (that is, `{}` here) is shared among all keys. Since you've added a mutable value, when you mutate it this change is seen for all keys holding the value. 

This is documented in dict.fromkeys https://docs.python.org/3/library/stdtypes.html#dict.fromkeys
History
Date User Action Args
2020-06-03 08:35:13Jim Fasarakis-Hilliardsetrecipients: + Jim Fasarakis-Hilliard, hung son luong
2020-06-03 08:35:13Jim Fasarakis-Hilliardsetmessageid: <1591173313.57.0.73202670869.issue40852@roundup.psfhosted.org>
2020-06-03 08:35:13Jim Fasarakis-Hilliardlinkissue40852 messages
2020-06-03 08:35:13Jim Fasarakis-Hilliardcreate