Skip to content

Commit 6d94626

Browse files
committed
gh-124520: What's New for ctypes metaclass __new__/__init__ change
1 parent 0d9d56c commit 6d94626

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Doc/whatsnew/3.13.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,19 @@ copy
824824
(Contributed by Serhiy Storchaka in :gh:`108751`.)
825825

826826

827+
ctypes
828+
------
829+
830+
* As a consequence of necessary internal refactoring, initialization of
831+
internal metaclasses now happens in ``__init__`` rather
832+
than in ``__new__``. This affects projects that subclass these internal
833+
metaclasses to provide custom initialization.
834+
Generally, logic that was done in ``__new__`` after calling
835+
``super().__new__`` should be moved to ``__init__``.
836+
See :gh:`124520` for discussion and links to changes in some affected
837+
projects.
838+
839+
827840
dbm
828841
---
829842

0 commit comments

Comments
 (0)