Locks need to be initialized before objects become available for mutation in Python. That means doing so in new(). A number of types current have tp_new set to PyType_GenericNew. Others have their own tp_new implementation. In both cases the respective locks must be initialized in whatever is set in tp_new.
Note on WIP: This PR will grow as more and more types are fixed.
(see issue #20)
Locks need to be initialized before objects become available for mutation in Python. That means doing so in new(). A number of types current have tp_new set to PyType_GenericNew. Others have their own tp_new implementation. In both cases the respective locks must be initialized in whatever is set in tp_new.
Note on WIP: This PR will grow as more and more types are fixed.