Python: Problem With Local Modules Shadowing Global Modules
I've got a package set up like so: packagename/ __init__.py numbers.py tools.py ...other stuff Now inside tools.py, I'm trying to import the standard library modul
Solution 1:
absolute and relative imports can be used since python2.5 (with __future__
import) and seem to be what you're looking for.
Post a Comment for "Python: Problem With Local Modules Shadowing Global Modules"