cpython icon indicating copy to clipboard operation
cpython copied to clipboard

gh-99275: Fix `SystemError` in `ctypes` during `__initsubclass__`

Open sobolevn opened this issue 3 years ago • 0 comments

During __initsubclass__ not all parts required by PyType_stgdict are ready. This PR just sets a better error message, without changing the semantics of the type creation.

  • Issue: gh-99275

sobolevn avatar Nov 09 '22 09:11 sobolevn