This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients brett.cannon, eric.araujo, eric.snow, georg.brandl, kau8hik, martin.panter, mgedmin, python-dev, r.david.murray, sean.rodman, terry.reedy
Date 2016-06-11.06:03:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
My guess is the file.startswith(basedir) in the getdocloc() method is getting tricked by non-canonical paths (e.g. lowercase vs uppercase C: drive?). Would it help to use something like os.path.normcase(), or maybe os.path.commonpath(), or PurePath.relative_to()?

file = inspect.getabsfile(object)
basedir = os.path.normcase(basedir)
if (...
     (file.startswith(basedir) and ...

Also, in the new get_pydoc_link() function, is that os.path.join() call meant to be there?

basedir = os.path.join(dirname(dirname(__file__)))
Date User Action Args
2016-06-11 06:03:21martin.pantersetrecipients: + martin.panter, brett.cannon, georg.brandl, terry.reedy, mgedmin, eric.araujo, r.david.murray, python-dev, eric.snow, sean.rodman, kau8hik
2016-06-11 06:03:21martin.pantersetmessageid: <>
2016-06-11 06:03:21martin.panterlinkissue16484 messages
2016-06-11 06:03:20martin.pantercreate