Message265081
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:24 | ztane | set | recipients:
+ ztane, gvanrossum, terry.reedy, eric.smith, serhiy.storchaka |
2016-05-07 17:10:24 | ztane | set | messageid: <1462641024.43.0.202264405485.issue26906@psf.upfronthosting.co.za> |
2016-05-07 17:10:24 | ztane | link | issue26906 messages |
2016-05-07 17:10:24 | ztane | create | |
|