'py-execute-region' is broken in Version 4.63. Fix is already in CVS@Sourceforge Reproducible: Always Steps to Reproduce: 1.ACCEPT_KEYWORDS=~x86 emerge "=python-mode-4.63-r1" 2.Enter python-mode and paste sample-code: #!/usr/bin/python print "Hello World" 3. Execute 'M-x py-execute-buffer' Actual Results: wrong-type-argument sequencep cpython Expected Results: Hello World Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r9 i686) ================================================================= System uname: 2.6.9-gentoo-r9 i686 Intel(R) Pentium(R) III Mobile CPU 933MHz Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/root/portdir_overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X apm arts avi berkdb bitmap-fonts crypt encode f77 foomaticdb fortran gdbm gif gpm gtk gtk2 imlib jpeg kde leim libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis oss pam pdflib perl png python qt quicktime readline slang spell ssl svga tcpd tiff truetype unicode x86 xml2 xmms xv zlib"
Created attachment 46241 [details] python-mode-4.63-r2.ebuild
Created attachment 46242 [details, diff] patch to fix py-execute-region
Thanks for the note and sorry about the huge delay. I added python-mode-1.0 to Portage. See the instructions in Bug #115186 on how to use it. I verified that the source for 1.0 uses the patch you described.