https://github.com/python/cpython/commit/17cba55786a1b1e6b715b1a88ae1f9088f5d5999 commit: 17cba55786a1b1e6b715b1a88ae1f9088f5d5999 branch: main author: Shantanu <[email protected]> committer: AlexWaygood <[email protected]> date: 2024-05-16T09:39:37-04:00 summary:
gh-108267: Fix object.__setattr__ regression in dataclasses docs (#119082) files: M Doc/library/dataclasses.rst diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst index 98459c1b6e1020..7aa754c9ccc0a1 100644 --- a/Doc/library/dataclasses.rst +++ b/Doc/library/dataclasses.rst @@ -615,7 +615,8 @@ methods will raise a :exc:`FrozenInstanceError` when invoked. There is a tiny performance penalty when using ``frozen=True``: :meth:`~object.__init__` cannot use simple assignment to initialize fields, and -must use :meth:`!__setattr__`. +must use :meth:`!object.__setattr__`. +.. Make sure to not remove "object" from "object.__setattr__" in the above markup .. _dataclasses-inheritance: _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
