We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8cf587 commit 3387f76Copy full SHA for 3387f76
Doc/whatsnew/3.13.rst
@@ -824,6 +824,24 @@ copy
824
(Contributed by Serhiy Storchaka in :gh:`108751`.)
825
826
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:
835
836
+ - Custom logic that was done in ``__new__`` after calling ``super().__new__``
837
+ should be moved to ``__init__``.
838
+ - To create a class, call the metaclass, not only the metaclass's
839
+ ``__new__`` method.
840
841
+ See :gh:`124520` for discussion and links to changes in some affected
842
+ projects.
843
844
845
dbm
846
---
847
0 commit comments