Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
gh-124520: What's New for ctypes metaclass __new__/__init__ change
  • Loading branch information
encukou committed Sep 25, 2024
commit 6d9462686124d0310777c5e9056b40c864a368d7
13 changes: 13 additions & 0 deletions Doc/whatsnew/3.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,19 @@ copy
(Contributed by Serhiy Storchaka in :gh:`108751`.)


ctypes
------

* As a consequence of necessary internal refactoring, initialization of
internal metaclasses now happens in ``__init__`` rather
than in ``__new__``. This affects projects that subclass these internal
metaclasses to provide custom initialization.
Generally, logic that was done in ``__new__`` after calling
``super().__new__`` should be moved to ``__init__``.
See :gh:`124520` for discussion and links to changes in some affected
projects.


dbm
---

Expand Down