Re: How to edit a function in an interactive python session?

2017-12-21 Thread Terry Reedy
On 12/20/2017 8:42 PM, Peng Yu wrote: R has the function edit() which allows the editing of the definition of a function. Does python have something similar so that users can edit python functions on the fly? Thanks. https://www.rdocumentation.org/packages/utils/versions/3.4.3/topics/edit In

Re: How to edit a function in an interactive python session?

2017-12-20 Thread Rustom Mody
On Thursday, December 21, 2017 at 7:12:24 AM UTC+5:30, Peng Yu wrote: > Hi, > > R has the function edit() which allows the editing of the definition > of a function. Does python have something similar so that users can > edit python functions on the fly? Thanks. > >

Re: How to edit a function in an interactive python session?

2017-12-20 Thread Steve D'Aprano
On Thu, 21 Dec 2017 12:42 pm, Peng Yu wrote: > Hi, > > R has the function edit() which allows the editing of the definition > of a function. Does python have something similar so that users can > edit python functions on the fly? Thanks. > >

Re: How to edit a function in an interactive python session?

2017-12-20 Thread Ben Finney
Peng Yu writes: > R has the function edit() which allows the editing of the definition > of a function. Does python have something similar so that users can > edit python functions on the fly? Thanks. That would depend on which interactive tool you're using. The typical

How to edit a function in an interactive python session?

2017-12-20 Thread Peng Yu
Hi, R has the function edit() which allows the editing of the definition of a function. Does python have something similar so that users can edit python functions on the fly? Thanks. https://www.rdocumentation.org/packages/utils/versions/3.4.3/topics/edit -- Regards, Peng --