Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit beaf88a

Browse files
committed
add news
1 parent d7156e6 commit beaf88a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Doc/whatsnew/3.12.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ Other Language Changes
192192
* :class:`slice` objects are now hashable, allowing them to be used as dict keys and
193193
set items. (Contributed by Will Bradshaw and Furkan Onder in :gh:`101264`.)
194194

195+
* Exceptions raised in a typeobject's ``__set_name__`` method are no longer
196+
wrapped by a :exc:`RuntimeError`. Context information is added to the
197+
exception as a :pep:`678` note. (Contributed by Irit Katriel in :gh:`77757`.)
198+
195199
New Modules
196200
===========
197201

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Exceptions raised in a typeobject's ``__set_name__`` method are no longer
2+
wrapped by a :exc:`RuntimeError`. Context information is added to the
3+
exception as a :pep:`678` note.

0 commit comments

Comments
 (0)