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 ncoghlan
Recipients belopolsky, exarkun, gpolo, loewis, ncoghlan
Date 2008-12-14.01:31:51
SpamBayes Score 8.438165e-05
Marked as misclassified No
Message-id <1229218313.32.0.564653480021.issue4223@psf.upfronthosting.co.za>
In-reply-to
Content
After looking into this, I think Alexander is correct. There is no
standard mapping between __file__ and __name__ and linecache is mistaken
in assuming such a mapping exists for all importers (and is the same as
the standard filesystem to name mapping to boot).

In this particular case, it was the differences between the way the two
relate for a package vs a normal module that was confusing linecache,
but for more exotic cases the filesystem based rules that linecache was
attempting to enforce may be completely irrelevant.
History
Date User Action Args
2008-12-14 01:31:53ncoghlansetrecipients: + ncoghlan, loewis, exarkun, belopolsky, gpolo
2008-12-14 01:31:53ncoghlansetmessageid: <1229218313.32.0.564653480021.issue4223@psf.upfronthosting.co.za>
2008-12-14 01:31:52ncoghlanlinkissue4223 messages
2008-12-14 01:31:51ncoghlancreate