what I would like python.el to do (and maybe it does)

J Kenneth King james at agentultra.com
Fri May 29 10:09:12 EDT 2009


Piet van Oostrum <piet at cs.uu.nl> writes:

>>>>>> J Kenneth King <james at agentultra.com> (JKK) wrote:
>
>>JKK> I find that it does work, but unlike SLIME for lisp, it just imports the statement.
>
>>JKK> It confused me at first, but basically the interpreter doesn't provide
>>JKK> any feedback to emacs.
>
>>JKK> Try opening a python source file (start python-mode if you don't have
>>JKK> an autoload hook) and do C-c C-z to bring up the Python
>>JKK> interpreter. Type in a simple assignment statement (like "a = 1 + 2"
>>JKK> without the quotes) into the source file. Then just C-c C-c as
>>JKK> usual. I never get any feedback. Just C-x o to the interpreter and
>>JKK> print out the variable you just defined. It should be there.
>
> What kind of feedback do you expect?

Well, that's the thing -- type a statement into a python interpreter and
you just get a new prompt.

LISP has a REPL, so you get some sort of feedback printed.

However, some sort of visual cue on the emacs side would be nice. Either
just flash the block of code being sent or a minibuffer message would be
nice.

Look for some SLIME tutorial videos on youtube to see some great
interpreter <-> editor interaction.

The stock Python interpreter probably wouldn't cut it close to something
like SLIME in terms of features, but the iPython package might be a
start.



More information about the Python-list mailing list