New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unloading extension modules not always safe #39520
Comments
I will look into the solution for this, but the "for now" |
Logged In: YES Bob, I'm confused. As far as I know Python never unloads |
Logged In: YES it does if you del sys.modules['somemodule'] and somemodule's |
Logged In: YES I'm surprised that it does the unload:-) I think the correct solution would be for the module itself (or The real problem is that the "last reference" as Python sees it isn't |
Logged In: YES I think that either the module itself, or the package responsible for The root of the problem is that the Python refcount doesn't reflect OTOH: if all modules containing ObjC code have this problem, and |
Logged In: YES Note that the problem doesn't really have anything to do with What happens:
No code in the extension module has any change to fix things BTW. The problem also exists in a vanilla Python 2.3 installation on |
Logged In: YES A quick workaround would be to let pydoc check the type of |
Logged In: YES Another, probably more correct, workaround is to stop alling This function is only called when an invalid dynamic object is |
Logged In: YES Fixed in dynload_next.c 2.15. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: