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
* 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
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
* 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
* 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
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
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
> (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
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
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
10 matches
Mail list logo