Message208362
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") |
|
Date |
User |
Action |
Args |
2014-01-17 21:08:16 | cqxz | set | recipients:
+ cqxz |
2014-01-17 21:08:16 | cqxz | set | messageid: <1389992896.56.0.367733971337.issue20290@psf.upfronthosting.co.za> |
2014-01-17 21:08:16 | cqxz | link | issue20290 messages |
2014-01-17 21:08:16 | cqxz | create | |
|