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 ethan.furman
Recipients ethan.furman
Date 2020-09-19.08:49:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1600505371.4.0.907102076211.issue41811@roundup.psfhosted.org>
In-reply-to
Content
Currently, __new__ creates each member as an empty string, then adds the _value_ attribute.  Because of this, each member is equal to each other, and all appear the same to any data structure that relies on equality and hash as distinguishers (so, basically, all of them).

The fix is to use the first value as the string to be created.
History
Date User Action Args
2020-09-19 08:49:31ethan.furmansetrecipients: + ethan.furman
2020-09-19 08:49:31ethan.furmansetmessageid: <1600505371.4.0.907102076211.issue41811@roundup.psfhosted.org>
2020-09-19 08:49:31ethan.furmanlinkissue41811 messages
2020-09-19 08:49:30ethan.furmancreate