File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -824,6 +824,24 @@ copy
824
824
(Contributed by Serhiy Storchaka in :gh: `108751 `.)
825
825
826
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
+
827
845
dbm
828
846
---
829
847
You can’t perform that action at this time.
0 commit comments