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 Kyle.Simpson
Recipients Kyle.Simpson
Date 2013-04-15.12:52:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1366030340.02.0.51431850328.issue17735@psf.upfronthosting.co.za>
In-reply-to
Content
Here is one way to reproduce this bug:

1. Create a module file (bug.py in this example)

def func():
    pass

2. Run Python

>>> import bug
>>> help(bug)

3. Edit bug.py

def func():
    pass

def newfunc():
    pass

4. Use the same Python interpreter as in step 2

>>> reload(bug)
>>> help(bug)

5. Observe traceback

  [..snip..]
  File "C:\Python27\lib\inspect.py", line 578, in findsource
    if pat.match(lines[lnum]): break
IndexError: list index out of range


Note: A related but different issue is http://bugs.python.org/issue1218234.
History
Date User Action Args
2013-04-15 12:52:20Kyle.Simpsonsetrecipients: + Kyle.Simpson
2013-04-15 12:52:20Kyle.Simpsonsetmessageid: <1366030340.02.0.51431850328.issue17735@psf.upfronthosting.co.za>
2013-04-15 12:52:19Kyle.Simpsonlinkissue17735 messages
2013-04-15 12:52:19Kyle.Simpsoncreate