[Python-Dev] [Python-checkins] cpython (2.7): allow "fake" filenames in findsource (closes #9284)
benjamin at python.org
Sun Jun 12 17:31:11 CEST 2011
2011/6/12 Nick Coghlan <ncoghlan at gmail.com>:
> On Sun, Jun 12, 2011 at 6:56 AM, benjamin.peterson
> <python-checkins at python.org> wrote:
>> allow "fake" filenames in findsource (closes #9284)
>> This allows findsource() to work in doctests.
>> A patch from Dirkjan Ochtman.
> Either this exception should be mentioned in the inspect.getsource()
> documentation or else doctest should be monkeypatching inspect as well
> as linecache.
I should have made more clear in the message that this is actually a
regression from 2.6.
More information about the Python-Dev