◐ Shell
clean mode source ↗

Message 118475 - Python tracker

> 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.

Yes, I think it's the best solution. People can easily copy the dict if they want to keep it around after the module gets destroyed.