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

SourceForge.net noreply at sourceforge.net
Mon Aug 4 21:36:00 EDT 2003


Patches item #779839, was opened at 2003-07-29 15:29
Message generated for change (Comment added) made by montanaro
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: Closed
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. 
 

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

>Comment By: Skip Montanaro (montanaro)
Date: 2003-08-04 22:35

Message:
Logged In: YES 
user_id=44345

migrated to python-mode project.  follow it here:

https://sourceforge.net/tracker/
index.php?func=detail&aid=783262&group_id=86916&ati
d=581351


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

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



More information about the Patches mailing list