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 ztane
Recipients eric.smith, gvanrossum, serhiy.storchaka, terry.reedy, ztane
Date 2016-05-07.17:10:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Could it be possible to to make the debug build absolutely abort on any usage of PyType's that are not readied, usage including instantiating them. Then, instead of changing all `static` linkages to `extern`s (as in Serhiy's first patch) one could rather make per-compilation unit initialization functions that are called from objects.c; that way it would be easier to use preprocessor to turn on and off the very existence of certain types in a compilation unit based on a preprocessor flag.

Likewise the C-API docs for PyType_Ready should perhaps say "This must be called on all type objects to finish their initialization." instead of "should"
Date User Action Args
2016-05-07 17:10:24ztanesetrecipients: + ztane, gvanrossum, terry.reedy, eric.smith, serhiy.storchaka
2016-05-07 17:10:24ztanesetmessageid: <>
2016-05-07 17:10:24ztanelinkissue26906 messages
2016-05-07 17:10:24ztanecreate