cpython/Misc/NEWS.d/next/Library/2023-03-10-13-21-16.gh-issu...

5 lines
281 B
ReStructuredText

Speed up setting or deleting mutable attributes on non-dataclass subclasses of
frozen dataclasses. Due to the implementation of ``__setattr__`` and
``__delattr__`` for frozen dataclasses, this previously had a time complexity
of ``O(n)``. It now has a time complexity of ``O(1)``.