New submission from Ethan Furman <et...@stoneleaf.us>:

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.

----------
assignee: ethan.furman
components: Library (Lib)
messages: 377153
nosy: ethan.furman
priority: normal
severity: normal
status: open
title: pstats.SortKey enum is broken
type: behavior
versions: Python 3.10, Python 3.8, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41811>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to