[issue17735] inspect.findsource raises IndexError

Irit Katriel report at bugs.python.org
Thu Dec 3 14:33:08 EST 2020


Irit Katriel <iritkatriel at yahoo.com> added the comment:

I'm unable to reproduce it now. Has it been fixed?

>>> import x
>>> help(x)
Help on module x:

NAME
    x

FUNCTIONS
    func()

FILE
    c:\users\user\src\cpython\x.py


>>> from importlib import reload
>>> reload(x)
<module 'x' from 'C:\\Users\\User\\src\\cpython\\x.py'>
>>> help(x)
Help on module x:

NAME
    x

FUNCTIONS
    func()

    newfunc()

FILE
    c:\users\user\src\cpython\x.py

----------
nosy: +iritkatriel

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue17735>
_______________________________________


More information about the Python-bugs-list mailing list