retitle 671021 help() thinks that packages in /usr/lib/pythonX.Y/dist-packages 
are from the standard library
reassign 671021 package python2.7
clone 671021 -1
reassign -1 python3.2
thanks

Twas brillig at 11:42:10 01.05.2012 UTC+02 when dooms...@knuut.de did gyre and 
gimble:

 UE> If you import the pyinotify module and invoke "help(pyinotify)", you get 
the 
 UE> following output:

 UE> | MODULE DOCS
 UE> |     http://docs.python.org/library/pyinotify

 UE> This link doesn't exist, pyinotify is not (yet?) part of upstream's 
standard 
 UE> library.

>From /usr/lib/python2.7/pydoc.py:

        if (isinstance(object, type(os)) and
            (object.__name__ in ('errno', 'exceptions', 'gc', 'imp',
                                 'marshal', 'posix', 'signal', 'sys',
                                 'thread', 'zipimport') or
             (file.startswith(basedir) and
              not file.startswith(os.path.join(basedir, 'site-packages')))) and
            object.__name__ not in ('xml.etree', 'test.pydoc_mod')):
            if docloc.startswith("http://";):
                docloc = "%s/%s" % (docloc.rstrip("/"), object.__name__)
            else:
                docloc = os.path.join(docloc, object.__name__ + ".html")
        else:
            docloc = None

Apparently pydoc needs to be fixed to take dist-packages into account,
as pyinotify, as well as other packages installed there, gets
misdetected as a part of standard library.

-- 



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to