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
Update importlib.util.module_for_loader/set_loader to set when __loader__ = None #61319
Comments
The various importlib.util decorators involved with __loader__ should reset the attribute when it is set to None, just like for __package__. |
+1 |
The patch is attached. Is it correct? |
Yep, the patch looks right, Gökcen! If you want to update the tests and docs that would be great, but obviously don't feel obliged to. |
Issue bpo-17116 will be fixed by issue bpo-17715 if you decide to tackle it. That bug will require C-level changes to the module type; just FYI. Please consider a PSF contributor form, Gökcen, if you plan to continue to submit code (your importlib.util fixes are simple enough to not require anything yet, but tests added to that plus anything you do for issue bpo-17115 will require the form in order for me to commit your code). Instructions can be found at http://www.python.org/psf/contrib/ . And obviously thanks for taking a look at all of this! |
I have already given my form to akheron during a Python sprint, I think he will submit it to PSF within a few days. |
New changeset 7647aae9481c by Brett Cannon in branch 'default': |
Thanks for the patch, Gökcen! Added you the Misc/ACKS. |
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: