[issue18508] enum.Enum population of _value2member_map does not match fallback search

2013-07-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 37c427e3eb94 by Ethan Furman in branch 'default': Close #18508 -- fix _value2member_map to always have the member's value http://hg.python.org/cpython/rev/37c427e3eb94 -- nosy: +python-dev resolution: -> fixed stage: patch review -> committ

[issue18508] enum.Enum population of _value2member_map does not match fallback search

2013-07-19 Thread Ethan Furman
Ethan Furman added the comment: Cleaner patch. -- Added file: http://bugs.python.org/file30987/issue18510.stoneleaf.02.patch ___ Python tracker ___ __

[issue18508] enum.Enum population of _value2member_map does not match fallback search

2013-07-19 Thread Ethan Furman
Changes by Ethan Furman : -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file30986/issue18510.stoneleaf.01.patch ___ Python tracker ___ __

[issue18508] enum.Enum population of _value2member_map does not match fallback search

2013-07-19 Thread Ethan Furman
Changes by Ethan Furman : -- assignee: -> ethan.furman nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue18508] enum.Enum population of _value2member_map does not match fallback search

2013-07-19 Thread Chris Lambacher
New submission from Chris Lambacher: When an Enum is being created, the _value2member_map class property is defined to speed lookup of Enum values later on. If the value does not exist then it falls back to a linear search through the _member_map.values() looking for member.value == value. Thi