Re: python novice

2005-09-08 Thread Adam
You're right. Quick check was on test.py, whereas we had moved onto test2.py, as one does. So, it works perfectly. And pops up a buffer with the Py output. beaut - thanks TJ. >> Python 2.3.3 (#2, Feb 17 2004, 11:45:40) >> [GCC 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)] on linux2 >> Type "hel

Re: python novice

2005-09-08 Thread Tim Johnson
* Adam <[EMAIL PROTECTED]> [050908 02:55]: > > [ ... ] > > Python 2.3.3 (#2, Feb 17 2004, 11:45:40) > [GCC 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> ## working on region in file /home/ahc/tmp/python-2745nWq.py

Re: python novice

2005-09-08 Thread Adam
Tim Johnson wrote: [ ... ] >> Hey Adam: >> >> Start the python interpreter first >> C-c ! or use the menu >> >> then run the python execute buffer command >> C-c C-c >> >> What happens then? >> HTH >> tim Still have a problem, as below. And even with the interpreter then in comint-mo

Re: python novice

2005-09-07 Thread Tim Johnson
* Tim Johnson <[EMAIL PROTECTED]> [050907 16:43]: > * Adam <[EMAIL PROTECTED]> [050906 17:59]: > > > > Well, I removed; > > > > #!/usr/bin/env python > > > > from the 1st line of my test.py buffer, > > and the C-c C-c now works fine. Py program > > runs and terminates normally. Forgot to

Re: python novice

2005-09-07 Thread Tim Johnson
* Adam <[EMAIL PROTECTED]> [050906 17:59]: > > Well, I removed; > > #!/usr/bin/env python > > from the 1st line of my test.py buffer, > and the C-c C-c now works fine. Py program > runs and terminates normally. Hey Adam: Start the python interpreter first C-c ! or use the menu then run

Re: python novice

2005-09-07 Thread Kevin Rodgers
Adam wrote: >>(setq debug-on-error t) > > I stuck this into the *scratch* buffer, C-j didn't > work so I did eval-region to it. Now I get the > error reported as below. Hmmm ... > > Seems I'm in python-mode, however this is a Lisp > of Emacs error - telling me .. something. > > Seems I should hit

Re: python novice

2005-09-06 Thread Adam
Well, I removed; #!/usr/bin/env python from the 1st line of my test.py buffer, and the C-c C-c now works fine. Py program runs and terminates normally. Which prompts me to ask - what do Python users do in Emacs so that that 1st line, necessary for an executable Python file, is transparent

Re: python novice

2005-09-06 Thread Adam
> (setq debug-on-error t) I stuck this into the *scratch* buffer, C-j didn't work so I did eval-region to it. Now I get the error reported as below. Hmmm ... Seems I'm in python-mode, however this is a Lisp of Emacs error - telling me .. something. Seems I should hit the Emacs manual. Unl

Re: python novice

2005-09-06 Thread Kevin Rodgers
Adam wrote: > I have an example python program in > a buffer called test.py > > am using GNU Emacs 21.3.2 (a mandrake version) > C-h m shows python bindings for that buffer > > So when I C-c C-c (py-execute-buffer) > I receive the error; > > "Wrong argument type: sequencep, cpython" > > Whereas

python novice

2005-09-05 Thread Adam
I have an example python program in a buffer called test.py am using GNU Emacs 21.3.2 (a mandrake version) C-h m shows python bindings for that buffer So when I C-c C-c (py-execute-buffer) I receive the error; "Wrong argument type: sequencep, cpython" Whereas the same python program