8000 gh-105535 Document potential performance trap during enum creation by nicky-eng · Pull Request #107119 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-105535 Document potential performance trap during enum creation #107119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Mar 8, 2024
Next Next commit
gh-105535 Document potential performance trap during enum creation
  • Loading branch information
nicky-eng committed Jul 23, 2023
commit d433f2186dd0f56c03f51b47a2b9dc3eba88dd3b
4 changes: 4 additions & 0 deletions Doc/library/enum.rst
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ Data Types
appropriate value will be chosen for you. See :class:`auto` for the
details.

If the value is not hashable, the enum creation will take quadratic time
relative to the number of members.


.. attribute:: Enum._ignore_

``_ignore_`` is only used during creation and is removed from the
Expand Down
0