recall function definition from shell

superpollo utente at esempio.net
Tue May 18 13:31:42 EDT 2010


 >>> def myfun():
...     return "WOW"
...
 >>> myfun()
'WOW'
 >>>

now, i would like to "list" the funcion definition, something like this:

 >>> myfun.somethinglikethis()
def myfun():
     return "WOW"
 >>>

is there something like this around?

bye



More information about the Python-list mailing list