https://github.com/python/cpython/commit/a3db4e8f964499eabeddb19a6201f3d3b73d7443
commit: a3db4e8f964499eabeddb19a6201f3d3b73d7443
branch: 3.12
author: Miss Islington (bot) <[email protected]>
committer: AlexWaygood <[email protected]>
date: 2024-05-16T13:46:20Z
summary:

[3.12] gh-108267: Fix object.__setattr__ regression in dataclasses docs 
(GH-119082) (#119098)

Co-authored-by: Shantanu <[email protected]>

files:
M Doc/library/dataclasses.rst

diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst
index e000aea1de3823..97929b51ae352b 100644
--- a/Doc/library/dataclasses.rst
+++ b/Doc/library/dataclasses.rst
@@ -613,7 +613,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]

Reply via email to