473,320 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

interactive editing

hi.

i would like to save, list and modify objects definitions in the python
shell... smt like:
def aFun(): .... return "I am aFun() !"
.... <command to save the previous source code to a file>
<command to view the previous definition> def aFun():
return "I am aFun() !" <command to edit it> <an emacs/vi/whatever process spawned, or better an internal editor if
it exists>


is it possible?

bye

max
Jul 18 '05 #1
2 1220

On 23 Jul 2004, at 16:18, max(01)* wrote:
hi.

i would like to save, list and modify objects definitions in the
python shell... smt like:


You might care to look at:

IPython http://ipython.scipy.org/
Py (formerly PyCrust) http://sourceforge.net/projects/pycrust/
(requires wxPython)

Caveat: I have no personal experience of either of these products.

HTH,

Tim J

Jul 18 '05 #2
Tim Jarman wrote:

On 23 Jul 2004, at 16:18, max(01)* wrote:
hi.

i would like to save, list and modify objects definitions in the
python shell... smt like:


You might care to look at:

IPython http://ipython.scipy.org/


Disclaimer: I'm the ipython author.

But yes, ipython does pretty much what the OP wanted, via the @save and @edit
commands.

Best,

f
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Tomas | last post by:
Hi! I'm looking for a replacement for the standard interactive python shell. So far I've tried IPython and PyCrust. I liked both, but I'm not 100% happy with any of them. My main complaint about...
15
by: Ashot | last post by:
This is sort of both Python and Vim related (which is why I've posted to both newsgroups). Python related: ---------------------- I have been frustrated for quite some time with a lack of a...
20
by: Joe | last post by:
When you run "python -i scriptname.py" after the script completes you left at the interactive command prompt. Is there a way to have this occur from a running program? In other words can I...
4
by: tnoell | last post by:
Hi comp.lang.python: New to the group and new to python, so don't tear me up too much ... I installed the GNU readline support in python2.4, and it is working, but there is one annoying behaviour...
1
by: Webb | last post by:
Hi all, (I am sure there is a recipe somewhere, but I can't find it.) How does one open an editor while in the middle of an interactive program, let the user do some editing and closing, and...
2
by: Tim Chase | last post by:
A couple of hopefully short (interrelated) questions: 1) is there a way to suppress the banner when starting Python interactively? Something like a "--quiet" that would just drop you straight...
10
by: notejam | last post by:
I am trying to get started with a interactive version of Python for windows and need some help. I have played with the tutorial, and now want to write a program. In basic language, I could write...
1
by: salmobytes | last post by:
I've been asked to create a website where various office secretaries, in a university biology department, can update selected pages by filling out forms. In other words where privileged users...
3
by: Sal | last post by:
I'm running PHP 5.2.6 on WindowsXP. When I try interactive mode with ">php -a" the slightest syntax error throws me out of the interpreter and back to the command line. This is not very useful....
4
by: vunet | last post by:
How to make an interactive map without Flash? I want to move mouse over each continent and see it changing its color but when clicked it would send some action to the DOM. Someone offered me to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.