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 cqxz
Recipients cqxz
Date 2014-01-17.21:08:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389992896.56.0.367733971337.issue20290@psf.upfronthosting.co.za>
In-reply-to
Content
When two files have the same name and the first changes directory to the second, the inspect module can retrieve the source code for the latter incorrectly, so a simple call to inspect.stack() can be incorrect, and will fail if there are less lines in the nested module (foo/bar/mod.py) than in the calling module (foo/mod.py)

foo/mod.py
foo/bar/mod.py

(the foo/bar/mod.py need only contain a single line, e.g. print "hello")
History
Date User Action Args
2014-01-17 21:08:16cqxzsetrecipients: + cqxz
2014-01-17 21:08:16cqxzsetmessageid: <1389992896.56.0.367733971337.issue20290@psf.upfronthosting.co.za>
2014-01-17 21:08:16cqxzlinkissue20290 messages
2014-01-17 21:08:16cqxzcreate