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

add import hook to shims #8186

Merged
merged 3 commits into from Mar 29, 2015
Merged

add import hook to shims #8186

merged 3 commits into from Mar 29, 2015

Conversation

minrk
Copy link
Member

@minrk minrk commented Mar 29, 2015

This ensures that submodule imports return the real target module, not a clone that will confuse is and isinstance checks.

@minrk
Copy link
Member Author

minrk commented Mar 29, 2015

cc: @takluyver

I also removed the reimplementation of import_item, since it appears that using import_item works properly, now. Not sure what it was that caused that to fail, but it doesn't seem to matter anymore.

@minrk minrk added this to the 4.0 milestone Mar 29, 2015
This ensures that submodule imports return the real target module,
not a clone that will confuse `is` and `isinstance` checks.
The problem described in the comment does not appear to exist anymore
@takluyver
Copy link
Member

Seems sensible, tests passing.

takluyver added a commit that referenced this pull request Mar 29, 2015
@takluyver takluyver merged commit 01e03c5 into ipython:master Mar 29, 2015
@minrk minrk deleted the shim-import-hook branch March 29, 2015 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants