Skip to content

Commit d433f21

Browse files
committed
pythongh-105535 Document potential performance trap during enum creation
1 parent cdeb1a6 commit d433f21

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/library/enum.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,10 @@ Data Types
267267
appropriate value will be chosen for you. See :class:`auto` for the
268268
details.
269269

270+
If the value is not hashable, the enum creation will take quadratic time
271+
relative to the number of members.
272+
273+
270274
.. attribute:: Enum._ignore_
271275

272276
``_ignore_`` is only used during creation and is removed from the

0 commit comments

Comments
 (0)