[Patches] [ python-Patches-779839 ] python-mode py-execute-buffer bug

SourceForge.net noreply@sourceforge.net
Tue, 29 Jul 2003 13:30:57 -0700


Patches item #779839, was opened at 2003-07-29 21:29
Message generated for change (Settings changed) made by jjlee
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=779839&group_id=5470

Category: Demos and tools
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: John J Lee (jjlee)
>Assigned to: Skip Montanaro (montanaro)
Summary: python-mode py-execute-buffer bug

Initial Comment:
The rest of this report is a quote from Skip's message in 
c.l.py. 
 
Attached is Skip's tentative patch (which is likely 
incorrect for Jython). 
 
--------------------------------- 
    John> 1. Why do I get this in my minibuffer when I do 
    John> C-c C-c in a python-mode buffer containing the 
    John> following valid Python code? 
 
    John> Wrong type argument: sequencep, cpython 
 
It looks like a bug in py-execute-region.  It sets the shell 
variable like so: 
 
        (setq shell (or (py-choose-shell-by-shebang) 
(py-choose-shell-by-import) py-which-shell)))) 
 
which gives it the value (quote cpython).  Later on it tries 
to concatenate it: 
 
      (let ((cmd (concat shell (if (string-equal 
py-which-bufname "JPython") " -" "")))) 
 
which fails because shell is not a string (strictly 
speaking, a sequence) at that point.  I'm not sure what 
the correct fix is. 
 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=779839&group_id=5470