Reify lazy objects when accessed via the module object

This commit is contained in:
Dino Viehland 2025-09-22 08:45:00 -07:00
parent 058bc6e884
commit 6d7c87a3fe
6 changed files with 101 additions and 12 deletions

View file

@ -24,6 +24,8 @@ typedef struct {
PyObject *md_weaklist;
// for logging purposes after md_dict is cleared
PyObject *md_name;
// module version we last checked for lazy values
uint32_t m_dict_version;
#ifdef Py_GIL_DISABLED
void *md_gil;
#endif