Re: recall function definition from shell

2010-05-18 Thread Terry Reedy
On 5/18/2010 2:55 PM, superpollo wrote: yes python does not, but maybe the *shell* does, or so i thought. i just wanted to dump the code for the function in a file, after i tested in the shell... On Windows, you can tell the shell (command window) how many lines to remember. One can sensibly

Re: recall function definition from shell

2010-05-18 Thread René 'Necoro' Neumann
Am 18.05.2010 20:55, schrieb superpollo: > > yes python does not, but maybe the *shell* does, or so i thought. i just > wanted to dump the code for the function in a file, after i tested in > the shell... You might want to have a look at the IPython shell [1]. I personally do not use it myself, b

Re: recall function definition from shell

2010-05-18 Thread Ethan Furman
superpollo wrote: Patrick Maupin ha scritto: On May 18, 1:41 pm, superpollo wrote: Patrick Maupin ha scritto: On May 18, 12:31 pm, superpollo wrote: >>> def myfun(): ... return "WOW" ... >>> myfun() 'WOW' now, i would like to "list" the funcion definition, something like this: >

Re: recall function definition from shell

2010-05-18 Thread superpollo
Peter Otten ha scritto: superpollo wrote: Patrick Maupin ha scritto: On May 18, 1:41 pm, superpollo wrote: Patrick Maupin ha scritto: On May 18, 12:31 pm, superpollo wrote: >>> def myfun(): ... return "WOW" ... >>> myfun() 'WOW' now, i would like to "list" the funcion definition,

Re: recall function definition from shell

2010-05-18 Thread Peter Otten
superpollo wrote: > Patrick Maupin ha scritto: >> On May 18, 1:41 pm, superpollo wrote: >>> Patrick Maupin ha scritto: >>> >>> >>> On May 18, 12:31 pm, superpollo wrote: > >>> def myfun(): > ... return "WOW" > ... > >>> myfun() > 'WOW' > now, i would like to "l

Re: recall function definition from shell

2010-05-18 Thread superpollo
Patrick Maupin ha scritto: On May 18, 1:41 pm, superpollo wrote: Patrick Maupin ha scritto: On May 18, 12:31 pm, superpollo wrote: >>> def myfun(): ... return "WOW" ... >>> myfun() 'WOW' now, i would like to "list" the funcion definition, something like this: >>> myfun.somethinglik

Re: recall function definition from shell

2010-05-18 Thread Patrick Maupin
On May 18, 1:41 pm, superpollo wrote: > Patrick Maupin ha scritto: > > > > > On May 18, 12:31 pm, superpollo wrote: > >>  >>> def myfun(): > >> ...     return "WOW" > >> ... > >>  >>> myfun() > >> 'WOW' > > >> now, i would like to "list" the funcion definition, something like this: > > >>  >>> my

Re: recall function definition from shell

2010-05-18 Thread superpollo
Patrick Maupin ha scritto: On May 18, 12:31 pm, superpollo wrote: >>> 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

Re: recall function definition from shell

2010-05-18 Thread Patrick Maupin
On May 18, 12:31 pm, superpollo wrote: >  >>> 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 lik

recall function definition from shell

2010-05-18 Thread superpollo
>>> 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 -- http://mail.python.org/mailman/listinfo/python-li