Skip to content
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

apipkg.initpkg should preserve __spec__ #13

Closed
ronaldoussoren opened this issue Jan 20, 2019 · 0 comments
Closed

apipkg.initpkg should preserve __spec__ #13

ronaldoussoren opened this issue Jan 20, 2019 · 0 comments

Comments

@ronaldoussoren
Copy link

ronaldoussoren commented Jan 20, 2019

Apipkg.initpkg should preserve the __spec__ attribute of the original module. This attribute is used by importlib, and in Python 3.7 importlib.util.find_spec('name') will fail when 'name' is already in sys.modules and doesn't have an attribute named __spec__

See also https://bugs.python.org/issue35791

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants