[issue21391] shutil uses both os.path.abspath and an 'import from' of abspath
Eric V. Smith
report at bugs.python.org
Thu Jun 26 19:56:21 CEST 2014
Eric V. Smith added the comment:
Now that I think about it, maybe we don't need a deprecation warning.
http://legacy.python.org/dev/peps/pep-0008/#public-and-internal-interfaces
says:
"Imported names should always be considered an implementation detail. Other modules must not rely on indirect access to such imported names unless they are an explicitly documented part of the containing module's API, such as os.path or a package's __init__ module that exposes functionality from submodules."
abspath isn't in __all__, so it's arguably not part of the public API, anyway.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21391>
_______________________________________
More information about the Python-bugs-list
mailing list