Message118474
Tricky. I think the only way to do this properly is to call _PyModule_Clear when the dict is destroyed. However, there's no good way to flag a dictionary as a "module" dict. Therefore, I propose we remove the Py_REFCNT == 1 guard in module_dealloc, and simply leave as an open bug that modules will clear their dictionaries on deallocation. Thoughts? |
|
Date |
User |
Action |
Args |
2010-10-12 21:16:42 | benjamin.peterson | set | recipients:
+ benjamin.peterson, amaury.forgeotdarc, pitrou, Valery.Lesin |
2010-10-12 21:16:42 | benjamin.peterson | set | messageid: <1286918202.44.0.519115682349.issue10068@psf.upfronthosting.co.za> |
2010-10-12 21:16:41 | benjamin.peterson | link | issue10068 messages |
2010-10-12 21:16:40 | benjamin.peterson | create | |
|