-
Notifications
You must be signed in to change notification settings - Fork 576
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
Module exports functions with naming conflict with submodule. #415
Comments
I think in my case in #414, it wasn't this issue because I was using I think fixing the name ambiguity is probably a good idea, but I think I On Friday, September 16, 2016, Matthias Bussonnier notifications@github.com
|
nbconvert.exporters.export could be resolved either as a function or a midule. `ExporterNameError` would also trigger some circular imports, so moved it one level higher. Should Fix jupyter#415
nbconvert.exporters.export could be resolved either as a function or a midule. `ExporterNameError` would also trigger some circular imports, so moved it one level higher. Should Fix jupyter#415 # Conflicts: # nbconvert/exporters/export.py
#423 closes this. |
in short
nbconvert.exporters.export
is both a module and a function leading to some confusing situation (for @michaelpacer) where import get confused when using relative import and some things make no sens:Wait did I just import a class from a function , and is the function it's own module ?
Proposed fix:
Rename the module
nbconvert.exporters.export
to something else. Deprecate and shim it (not to break import)That's not an hard issue to fix, but it's an interesting one. I'm fine doing it, but we can leave it for someone who is interested in it and weird python import behavior.
The text was updated successfully, but these errors were encountered: