◐ Shell
clean mode source ↗

bpo-34784: Fix PyStructSequence_NewType by eduardo-elizondo · Pull Request #9524 · python/cpython

PyStructSequence_NewType does not currently work. This aims to fix the implementation of PyStructSequence_NewType to fully create a heap allocated StructSequence.

In this change, I refactored some of the functionality of PyStructSequence_InitType2 into static functions so that it can be reused by PyStructSequence_NewType.

https://bugs.python.org/issue34784