[New-bugs-announce] [issue8812] Show package path in repr string for packages installed to user site

Sridhar Ratnakumar report at bugs.python.org
Mon May 24 23:00:30 CEST 2010


New submission from Sridhar Ratnakumar <sridharr at activestate.com>:

I see this in Python 2.7. No idea if this is a regression, mere future request, but doesn't it make sense to print the value `__path__` in the repr string?

>>> import paste
>>> paste
<module 'paste' (built-in)>
>>> paste.__path__
['/home/sridharr/.local/lib/python2.7/site-packages/paste']

It does for stdlib packages/modules:

>>> import xml
>>> xml
<module 'xml' from '/opt/ActivePython-2.7/lib/python2.7/xml/__init__.pyc'>

Happens on Windows, Linux and Mac using Python 2.7 hg hash eaeebf8cda33.0.

----------
components: Library (Lib)
messages: 106391
nosy: srid
priority: normal
severity: normal
status: open
title: Show package path in repr string for packages installed to user site
type: feature request
versions: Python 2.7

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


More information about the New-bugs-announce mailing list