[docs] [issue17108] import silently prefers package over module when both available

R. David Murray report at bugs.python.org
Sun Feb 3 15:48:56 CET 2013


R. David Murray added the comment:

Yes.  Imagine you have a deployed application, and there happens to be an xx.py file that is masked by a package in it.  You upgrade from pythonX.Y.Z to X.Y.Z+1, and your application is suddenly throwing an error.  Yes it is easy to fix, but we prefer not to break things that way.

Now, could we throw an error in Python 3.4?  It could be discussed, at least.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17108>
_______________________________________


More information about the docs mailing list