]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43938: improve dataclasses.FrozenInstanceError documentation (GH-25603)
authorLlandy Riveron Del Risco <llandy3d@gmail.com>
Mon, 26 Apr 2021 18:53:28 +0000 (20:53 +0200)
committerGitHub <noreply@github.com>
Mon, 26 Apr 2021 18:53:28 +0000 (14:53 -0400)
Doc/library/dataclasses.rst
Misc/ACKS
Misc/NEWS.d/next/Documentation/2021-04-25-22-44-27.bpo-43938.nC660q.rst [new file with mode: 0644]

index e13685e207cd0e0ef628af5a9eb231d4101acc5b..e4d2b57fd429241e7d27de0310aecd53655656d4 100644 (file)
@@ -631,4 +631,4 @@ Exceptions
 
    Raised when an implicitly defined :meth:`__setattr__` or
    :meth:`__delattr__` is called on a dataclass which was defined with
-   ``frozen=True``.
+   ``frozen=True``. It is a subclass of :exc:`AttributeError`.
index 7d9af855a744bd00c2ea471cc263d3ab761cab07..a18ddc65b79e8b97dc3390aeacddc7905664dc6e 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1452,6 +1452,7 @@ Vlad Riscutia
 Wes Rishel
 Daniel Riti
 Juan M. Bello Rivas
+Llandy Riveron Del Risco
 Mohd Sanad Zaki Rizvi
 Davide Rizzo
 Anthony Roach
diff --git a/Misc/NEWS.d/next/Documentation/2021-04-25-22-44-27.bpo-43938.nC660q.rst b/Misc/NEWS.d/next/Documentation/2021-04-25-22-44-27.bpo-43938.nC660q.rst
new file mode 100644 (file)
index 0000000..dcf252e
--- /dev/null
@@ -0,0 +1,2 @@
+Update dataclasses documentation to express that FrozenInstanceError is
+derived from AttributeError.