diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-04-11 10:53:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-11 10:53:06 (GMT) |
commit | 55c99d97e14618dfce41472dd4446f763b0da13f (patch) | |
tree | 457a036aa57a59204105937c6cba43f3ce6ba288 /Doc/whatsnew | |
parent | e071f00aaefae9eccf787d5c50396c26c8616483 (diff) | |
download | cpython-55c99d97e14618dfce41472dd4446f763b0da13f.zip cpython-55c99d97e14618dfce41472dd4446f763b0da13f.tar.gz cpython-55c99d97e14618dfce41472dd4446f763b0da13f.tar.bz2 |
gh-77757: replace exception wrapping by PEP-678 notes in typeobject's __set_name__ (#103402)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.12.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index 0eb1636..c7fc7d2 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -192,6 +192,10 @@ Other Language Changes * :class:`slice` objects are now hashable, allowing them to be used as dict keys and set items. (Contributed by Will Bradshaw and Furkan Onder in :gh:`101264`.) +* Exceptions raised in a typeobject's ``__set_name__`` method are no longer + wrapped by a :exc:`RuntimeError`. Context information is added to the + exception as a :pep:`678` note. (Contributed by Irit Katriel in :gh:`77757`.) + New Modules =========== |