[Python-checkins] bpo-43938: improve dataclasses.FrozenInstanceError documentation (GH-25603)

ericvsmith webhook-mailer at python.org
Mon Apr 26 14:53:38 EDT 2021


https://github.com/python/cpython/commit/8a307e488d596914a7a5df6b2fdd945f8ce81e69
commit: 8a307e488d596914a7a5df6b2fdd945f8ce81e69
branch: master
author: Llandy Riveron Del Risco <llandy3d at gmail.com>
committer: ericvsmith <ericvsmith at users.noreply.github.com>
date: 2021-04-26T14:53:28-04:00
summary:

bpo-43938: improve dataclasses.FrozenInstanceError documentation (GH-25603)

files:
A Misc/NEWS.d/next/Documentation/2021-04-25-22-44-27.bpo-43938.nC660q.rst
M Doc/library/dataclasses.rst
M Misc/ACKS

diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst
index e13685e207cd0..e4d2b57fd4292 100644
--- a/Doc/library/dataclasses.rst
+++ b/Doc/library/dataclasses.rst
@@ -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`.
diff --git a/Misc/ACKS b/Misc/ACKS
index 7d9af855a744b..a18ddc65b79e8 100644
--- 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
index 0000000000000..dcf252e21bb9e
--- /dev/null
+++ b/Misc/NEWS.d/next/Documentation/2021-04-25-22-44-27.bpo-43938.nC660q.rst
@@ -0,0 +1,2 @@
+Update dataclasses documentation to express that FrozenInstanceError is
+derived from AttributeError.



More information about the Python-checkins mailing list