This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients christian.heimes, erlendaasland, pablogsal, petr.viktorin, rhettinger, shihai1991, vstinner
Date 2022-01-28.01:47:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Quick update on this closed issue.

I landed on this issue from Erlend's SC request:

> Oh! I assumed this bug wasn't resolved, but it is -- in bpo-34784. Sorry, I should have checked!

Yes, there is the PyStructSequence_NewType() function which exists since 2010 (PEP 384 implementation: commit 4d0d471a8031de90a2b1ce99c4ac4780e60b3bc9).

I recently added _PyStructSequence_NewType() to the internal C API to pass flags like Py_TPFLAGS_DISALLOW_INSTANTIATION. I modified signal, _curses, time and _thread modules to use it.

On the other side, I added _PyStructSequence_FiniType() to clear a static structseq (bpo-46417).
Date User Action Args
2022-01-28 01:47:28vstinnersetrecipients: + vstinner, rhettinger, christian.heimes, petr.viktorin, pablogsal, shihai1991, erlendaasland
2022-01-28 01:47:28vstinnersetmessageid: <>
2022-01-28 01:47:28vstinnerlinkissue45113 messages
2022-01-28 01:47:28vstinnercreate