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/2004-November/049992.html below:

[Python-Dev] Re: Re: __pycode__ extension

[Python-Dev] Re: Re: __pycode__ extension [Python-Dev] Re: Re: __pycode__ extensionFernando Perez fperez528 at yahoo.com
Wed Nov 17 22:35:31 CET 2004
Phillip J. Eby wrote:

> If I understand correctly, this is unrelated.  The OP was about retaining
> source of functions defined in interactive mode, not the source of
> functions from files.  'os.path.walk' was obviously not typed in using
> interactive mode.  :)

OK, my misunderstanding.  You are right, and inspect does NOT seem to provide a
way to access the source of interactively defined functions (at least not that
I've seen):

In [6]: def foo(x):
   ...:     print x
   ...:

In [7]: psource foo
No source found for foo

Sorry for the confusion.

best,

f

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