On 5/19/2010 4:14 PM, superpollo wrote:
In [219]: %save tmp.py 218
File `tmp.py` exists. Overwrite (y/[N])? y
The following commands were written to file `tmp.py`:
def f():
return 42
In [220]: !cat tmp.py
def f():
return 42
In [221]: %psource f
No source found for f
maybe i got it:
In [230]: import tmp
In [231]: %psource tmp.f
def f():
return 42
I use IDLE, write functions and other code as desired in a temp file to
begin with, hit F5, and the window with source stays around until closef
it and the file until deleted.
--
http://mail.python.org/mailman/listinfo/python-list