What are the ways to edit a function defined in the environment of Python IDLE (or console)?
If you're using a terminal with a mouse support (as usual in X) or screen, you just scroll up to the last function definition, copy the source, call the editor and paste to it. Edit to taste, execute.
Short answer: no. Long answer: If you have readline support enabled, you can use the up-arrow to "redefine" it line-by-line.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With