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
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