A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-June/111873.html below:

[Python-Dev] [Python-checkins] cpython (2.7): allow "fake" filenames in findsource (closes #9284)

[Python-Dev] [Python-checkins] cpython (2.7): allow "fake" filenames in findsource (closes #9284) [Python-Dev] [Python-checkins] cpython (2.7): allow "fake" filenames in findsource (closes #9284)Nick Coghlan ncoghlan at gmail.com
Sun Jun 12 15:18:37 CEST 2011
On Sun, Jun 12, 2011 at 6:56 AM, benjamin.peterson
<python-checkins at python.org> wrote:
> summary:
>  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.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4