[issue8812] Show package path in repr string for packages installed to user site
Sridhar Ratnakumar
report at bugs.python.org
Mon May 24 23:48:35 CEST 2010
Sridhar Ratnakumar <sridharr at activestate.com> added the comment:
On 2010-05-24, at 2:44 PM, Martin v. Löwis wrote:
> You are mistaken. It doesn't include __path__ into repr, but __file__. It prints "(built-in)" if the filename is not set for some reason.
Ok. Why is __file__ not set for modules/packages installed to user site (~/.local/), but not stdlib? Is this a bug?
Ah, I see that a "__init__.py" is missing in these packages. Strange; gotta see how that happened in first place .. (even stranger that I can actually import these directories...)
----------
status: pending -> open
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8812>
_______________________________________
More information about the Python-bugs-list
mailing list