[issue20290] inspect module bug for modules with same filename

2021-04-26 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> inspect.findsource raises IndexError ___ Python tracker ___ ___

[issue20290] inspect module bug for modules with same filename

2014-02-15 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, yselivanov type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list maili

[issue20290] inspect module bug for modules with same filename

2014-01-17 Thread cqxz
New submission from cqxz: 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 modul