From unknown Mon Aug 18 19:33:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18596: 25.0.50; MS-Windows needs a different default for python-shell-interpreter-args Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Oct 2014 15:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18596 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 18596@debbugs.gnu.org Cc: =?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Reply-To: Eli Zaretskii Received: via spool by submit@debbugs.gnu.org id=B.14121764013293 (code B ref -1); Wed, 01 Oct 2014 15:14:01 +0000 Received: (at submit) by debbugs.gnu.org; 1 Oct 2014 15:13:21 +0000 Received: from localhost ([127.0.0.1]:57556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZLai-0000r2-6y for submit@debbugs.gnu.org; Wed, 01 Oct 2014 11:13:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35784) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZLag-0000qu-2x for submit@debbugs.gnu.org; Wed, 01 Oct 2014 11:13:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZLaV-0001c0-0I for submit@debbugs.gnu.org; Wed, 01 Oct 2014 11:13:18 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD, T_MANY_HDRS_LCASE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZLaU-0001bs-TA for submit@debbugs.gnu.org; Wed, 01 Oct 2014 11:13:06 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZLaN-0003Tl-BJ for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 11:13:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZLaE-0001Zz-Kn for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 11:12:59 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:60481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZLaE-0001Zv-D4; Wed, 01 Oct 2014 11:12:50 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NCR00D00TYU3V00@a-mtaout22.012.net.il>; Wed, 01 Oct 2014 18:12:49 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NCR00D8NU9D2V20@a-mtaout22.012.net.il>; Wed, 01 Oct 2014 18:12:49 +0300 (IDT) Date: Wed, 01 Oct 2014 18:12:45 +0300 From: Eli Zaretskii X-012-Sender: halo1@inter.net.il Message-id: <83oatvkemq.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.6 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) With the default value, 'run-python' hangs in accept-process-output. This fixes that for me: --- lisp/progmodes/python.el~0 2014-10-01 06:33:59 +0300 +++ lisp/progmodes/python.el 2014-10-01 18:10:48 +0300 @@ -1739,7 +1739,8 @@ :group 'python :safe 'stringp) -(defcustom python-shell-interpreter-args "-i" +(defcustom python-shell-interpreter-args + (if (eq system-type 'windows-nt) "-i -u" "-i") "Default arguments for the Python interpreter." :type 'string :group 'python) In GNU Emacs 25.0.50.10 (i686-pc-mingw32) of 2014-10-01 on HOME-C4E4A596F7 Repository revision: 117996 dmantipov@yandex.ru-20141001132108-zdsxru2390mqyjlu Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --prefix=/d/usr --enable-checking=yes,glyphs 'CFLAGS=-O0 -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB Important settings: value of $LANG: ENU locale-coding-system: cp1255 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Recent input: M-x r e p o r t - e m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32notify w32 multi-tty emacs) Memory information: ((conses 8 78619 5657) (symbols 32 17980 0) (miscs 32 36 97) (strings 16 12837 3606) (string-bytes 1 313654) (vectors 8 9980) (vector-slots 4 389907 2806) (floats 8 64 199) (intervals 28 240 95) (buffers 516 11)) From unknown Mon Aug 18 19:33:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18596: 25.0.50; MS-Windows needs a different default for python-shell-interpreter-args Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Oct 2014 16:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18596 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 18596@debbugs.gnu.org Received: via spool by 18596-submit@debbugs.gnu.org id=B18596.141218209117048 (code B ref 18596); Wed, 01 Oct 2014 16:49:01 +0000 Received: (at 18596) by debbugs.gnu.org; 1 Oct 2014 16:48:11 +0000 Received: from localhost ([127.0.0.1]:57599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZN4V-0004Qu-8L for submit@debbugs.gnu.org; Wed, 01 Oct 2014 12:48:11 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:33467) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZN4S-0004Qk-Hq for 18596@debbugs.gnu.org; Wed, 01 Oct 2014 12:48:08 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1XZN4Q-0003mX-OG; Wed, 01 Oct 2014 12:48:06 -0400 From: Glenn Morris References: <83oatvkemq.fsf@gnu.org> X-Spook: top secret bank NSA dictionary Bruxelles Medco Saddam X-Ran: Z1Ak];q&Rk@|r5Qb'3QcJ;,]M!~\.ARjw!}Yce5NlPM_};%*%GnLsCUjB/HKnwko-s7OR5 X-Hue: yellow X-Attribution: GM Date: Wed, 01 Oct 2014 12:48:06 -0400 In-Reply-To: <83oatvkemq.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 01 Oct 2014 18:12:45 +0300") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.6 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) Eli Zaretskii wrote: > With the default value, 'run-python' hangs in accept-process-output. > This fixes that for me: > > --- lisp/progmodes/python.el~0 2014-10-01 06:33:59 +0300 > +++ lisp/progmodes/python.el 2014-10-01 18:10:48 +0300 > @@ -1739,7 +1739,8 @@ > :group 'python > :safe 'stringp) > > -(defcustom python-shell-interpreter-args "-i" > +(defcustom python-shell-interpreter-args > + (if (eq system-type 'windows-nt) "-i -u" "-i") Should this be in emacs-24? (So no-one has ever used it on MS Windows?) From unknown Mon Aug 18 19:33:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18596: 25.0.50; MS-Windows needs a different default for python-shell-interpreter-args Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Oct 2014 16:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18596 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Glenn Morris Cc: 18596@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 18596-submit@debbugs.gnu.org id=B18596.141218224417299 (code B ref 18596); Wed, 01 Oct 2014 16:51:02 +0000 Received: (at 18596) by debbugs.gnu.org; 1 Oct 2014 16:50:44 +0000 Received: from localhost ([127.0.0.1]:57607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZN6x-0004Ux-Kd for submit@debbugs.gnu.org; Wed, 01 Oct 2014 12:50:44 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:53449) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZN6u-0004Um-La for 18596@debbugs.gnu.org; Wed, 01 Oct 2014 12:50:41 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NCR00400YPCQ100@a-mtaout20.012.net.il> for 18596@debbugs.gnu.org; Wed, 01 Oct 2014 19:50:39 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NCR0045QYSEFR60@a-mtaout20.012.net.il>; Wed, 01 Oct 2014 19:50:39 +0300 (IDT) Date: Wed, 01 Oct 2014 19:50:35 +0300 From: Eli Zaretskii In-reply-to: X-012-Sender: halo1@inter.net.il Message-id: <83egurka3o.fsf@gnu.org> References: <83oatvkemq.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Glenn Morris > Cc: 18596@debbugs.gnu.org > Date: Wed, 01 Oct 2014 12:48:06 -0400 > > Eli Zaretskii wrote: > > > With the default value, 'run-python' hangs in accept-process-output. > > This fixes that for me: > > > > --- lisp/progmodes/python.el~0 2014-10-01 06:33:59 +0300 > > +++ lisp/progmodes/python.el 2014-10-01 18:10:48 +0300 > > @@ -1739,7 +1739,8 @@ > > :group 'python > > :safe 'stringp) > > > > -(defcustom python-shell-interpreter-args "-i" > > +(defcustom python-shell-interpreter-args > > + (if (eq system-type 'windows-nt) "-i -u" "-i") > > Should this be in emacs-24? I wasn't sure it was important enough. I can back-port (given that the maintainer agrees to the fix). > (So no-one has ever used it on MS Windows?) This is just the default value of the defcustom, one could customize it and solve the problem. I guess whoever used this did that. From unknown Mon Aug 18 19:33:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18596: 25.0.50; MS-Windows needs a different default for python-shell-interpreter-args Resent-From: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Oct 2014 00:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18596 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 18596@debbugs.gnu.org X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.141229752420148 (code B ref -1); Fri, 03 Oct 2014 00:53:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Oct 2014 00:52:04 +0000 Received: from localhost ([127.0.0.1]:59587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZr6J-0005Et-Rt for submit@debbugs.gnu.org; Thu, 02 Oct 2014 20:52:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41167) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZr6H-0005EW-Cn for submit@debbugs.gnu.org; Thu, 02 Oct 2014 20:52:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZr6B-0003Kr-RA for submit@debbugs.gnu.org; Thu, 02 Oct 2014 20:52:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZr6B-0003Kn-OB for submit@debbugs.gnu.org; Thu, 02 Oct 2014 20:51:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZr66-0000fk-8f for bug-gnu-emacs@gnu.org; Thu, 02 Oct 2014 20:51:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZr5z-0003Hf-Uf for bug-gnu-emacs@gnu.org; Thu, 02 Oct 2014 20:51:50 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZr5z-0003Hb-RN for bug-gnu-emacs@gnu.org; Thu, 02 Oct 2014 20:51:43 -0400 Received: from 222-99-245-190.fibertel.com.ar ([190.245.99.222]:48932 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1XZr5z-0003vB-44; Thu, 02 Oct 2014 20:51:43 -0400 From: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) References: <83oatvkemq.fsf@gnu.org> Date: Thu, 02 Oct 2014 21:51:40 -0300 In-Reply-To: <83oatvkemq.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 01 Oct 2014 18:12:45 +0300") Message-ID: <87zjdeq8kj.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -6.0 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Eli Zaretskii writes: > With the default value, 'run-python' hangs in accept-process-output. > This fixes that for me: > > --- lisp/progmodes/python.el~0 2014-10-01 06:33:59 +0300 > +++ lisp/progmodes/python.el 2014-10-01 18:10:48 +0300 > @@ -1739,7 +1739,8 @@ > :group 'python > :safe 'stringp) >=20=20 > -(defcustom python-shell-interpreter-args "-i" > +(defcustom python-shell-interpreter-args > + (if (eq system-type 'windows-nt) "-i -u" "-i") > "Default arguments for the Python interpreter." > :type 'string > :group 'python) > That makes things a little bit more annoying for the user as it breaks changing from python to ipython easily since latter doesn't support the "-u" switch. I'll check this over the weekend to see if there's a better way to solve this hang on Windows. Thanks, Fabi=C3=A1n From unknown Mon Aug 18 19:33:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18596: 25.0.50; MS-Windows needs a different default for python-shell-interpreter-args Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Oct 2014 08:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18596 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) Cc: 18596@debbugs.gnu.org X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Reply-To: Eli Zaretskii Received: via spool by submit@debbugs.gnu.org id=B.14123241262515 (code B ref -1); Fri, 03 Oct 2014 08:16:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Oct 2014 08:15:26 +0000 Received: from localhost ([127.0.0.1]:59778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZy1O-0000eV-1p for submit@debbugs.gnu.org; Fri, 03 Oct 2014 04:15:26 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34382) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZy1K-0000eL-KB for submit@debbugs.gnu.org; Fri, 03 Oct 2014 04:15:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZy1B-0001yH-9I for submit@debbugs.gnu.org; Fri, 03 Oct 2014 04:15:22 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZy1B-0001y6-6g for submit@debbugs.gnu.org; Fri, 03 Oct 2014 04:15:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZy15-0005cd-AJ for bug-gnu-emacs@gnu.org; Fri, 03 Oct 2014 04:15:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZy0z-0001jZ-F1 for bug-gnu-emacs@gnu.org; Fri, 03 Oct 2014 04:15:07 -0400 Received: from mtaout23.012.net.il ([80.179.55.175]:57230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZy0z-0001jK-6p; Fri, 03 Oct 2014 04:15:01 -0400 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NCV0080002JJ400@a-mtaout23.012.net.il>; Fri, 03 Oct 2014 11:15:00 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NCV008EZ08ZHO30@a-mtaout23.012.net.il>; Fri, 03 Oct 2014 11:15:00 +0300 (IDT) Date: Fri, 03 Oct 2014 11:15:00 +0300 From: Eli Zaretskii In-reply-to: <87zjdeq8kj.fsf@gnu.org> Message-id: <83d2a9in7f.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: QUOTED-PRINTABLE X-012-Sender: halo1@inter.net.il References: <83oatvkemq.fsf@gnu.org> <87zjdeq8kj.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -6.0 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: fgallina@gnu.org (Fabi=C3=A1n Ezequiel Gallina) > Cc: bug-gnu-emacs@gnu.org > Date: Thu, 02 Oct 2014 21:51:40 -0300 >=20 > Eli Zaretskii writes: >=20 > > With the default value, 'run-python' hangs in accept-process-outp= ut. > > This fixes that for me: > > > > --- lisp/progmodes/python.el~0=092014-10-01 06:33:59 +0300 > > +++ lisp/progmodes/python.el=092014-10-01 18:10:48 +0300 > > @@ -1739,7 +1739,8 @@ > > :group 'python > > :safe 'stringp) > > =20 > > -(defcustom python-shell-interpreter-args "-i" > > +(defcustom python-shell-interpreter-args > > + (if (eq system-type 'windows-nt) "-i -u" "-i") > > "Default arguments for the Python interpreter." > > :type 'string > > :group 'python) > > >=20 > That makes things a little bit more annoying for the user as it bre= aks > changing from python to ipython easily since latter doesn't support= the > "-u" switch. You could remove the -u when invoking ipython. > I'll check this over the weekend to see if there's a better way to = solve > this hang on Windows. Thanks. From unknown Mon Aug 18 19:33:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18596: 25.0.50; MS-Windows needs a different default for python-shell-interpreter-args Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Oct 2014 10:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18596 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) Cc: 18596@debbugs.gnu.org X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Reply-To: Eli Zaretskii Received: via spool by submit@debbugs.gnu.org id=B.141345497229307 (code B ref -1); Thu, 16 Oct 2014 10:23:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 Oct 2014 10:22:52 +0000 Received: from localhost ([127.0.0.1]:45279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XeiCp-0007cc-BP for submit@debbugs.gnu.org; Thu, 16 Oct 2014 06:22:51 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57287) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XeiCn-0007cU-E3 for submit@debbugs.gnu.org; Thu, 16 Oct 2014 06:22:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XeiCg-0005Cq-NE for submit@debbugs.gnu.org; Thu, 16 Oct 2014 06:22:49 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeiCg-0005CW-LD for submit@debbugs.gnu.org; Thu, 16 Oct 2014 06:22:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeiCa-0000p0-P3 for bug-gnu-emacs@gnu.org; Thu, 16 Oct 2014 06:22:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XeiCR-0004r5-N1 for bug-gnu-emacs@gnu.org; Thu, 16 Oct 2014 06:22:36 -0400 Received: from mtaout27.012.net.il ([80.179.55.183]:57207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeiCR-0004qg-F5; Thu, 16 Oct 2014 06:22:27 -0400 Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NDJ00I007YFQW00@mtaout27.012.net.il>; Thu, 16 Oct 2014 13:17:15 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NDJ00A9R8KR6K90@mtaout27.012.net.il>; Thu, 16 Oct 2014 13:17:15 +0300 (IDT) Date: Thu, 16 Oct 2014 13:22:27 +0300 From: Eli Zaretskii In-reply-to: <87zjdeq8kj.fsf@gnu.org> Message-id: <83bnpc48m4.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: QUOTED-PRINTABLE X-012-Sender: halo1@inter.net.il References: <83oatvkemq.fsf@gnu.org> <87zjdeq8kj.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Ping! > From: fgallina@gnu.org (Fabi=C3=A1n Ezequiel Gallina) > Cc: bug-gnu-emacs@gnu.org > Date: Thu, 02 Oct 2014 21:51:40 -0300 >=20 > Eli Zaretskii writes: >=20 > > With the default value, 'run-python' hangs in accept-process-outp= ut. > > This fixes that for me: > > > > --- lisp/progmodes/python.el~0=092014-10-01 06:33:59 +0300 > > +++ lisp/progmodes/python.el=092014-10-01 18:10:48 +0300 > > @@ -1739,7 +1739,8 @@ > > :group 'python > > :safe 'stringp) > > =20 > > -(defcustom python-shell-interpreter-args "-i" > > +(defcustom python-shell-interpreter-args > > + (if (eq system-type 'windows-nt) "-i -u" "-i") > > "Default arguments for the Python interpreter." > > :type 'string > > :group 'python) > > >=20 > That makes things a little bit more annoying for the user as it bre= aks > changing from python to ipython easily since latter doesn't support= the > "-u" switch. >=20 > I'll check this over the weekend to see if there's a better way to = solve > this hang on Windows. >=20 >=20 > Thanks, > Fabi=C3=A1n >=20 From unknown Mon Aug 18 19:33:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18596: 25.0.50; MS-Windows needs a different default for python-shell-interpreter-args Resent-From: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Nov 2014 07:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18596 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 18596@debbugs.gnu.org X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.141594992329120 (code B ref -1); Fri, 14 Nov 2014 07:26:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Nov 2014 07:25:23 +0000 Received: from localhost ([127.0.0.1]:60075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpBFx-0007Zb-SN for submit@debbugs.gnu.org; Fri, 14 Nov 2014 02:25:22 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35413) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpBFv-0007ZS-9N for submit@debbugs.gnu.org; Fri, 14 Nov 2014 02:25:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XpBFq-00024p-Rp for submit@debbugs.gnu.org; Fri, 14 Nov 2014 02:25:19 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:50434) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpBFq-00024l-Ol for submit@debbugs.gnu.org; Fri, 14 Nov 2014 02:25:14 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpBFm-00035f-3V for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2014 02:25:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XpBFh-0001z1-NB for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2014 02:25:10 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57965) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpBFh-0001yo-Km for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2014 02:25:05 -0500 Received: from [190.246.172.180] (port=54828 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1XpBFg-0007nW-Ry; Fri, 14 Nov 2014 02:25:05 -0500 From: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) References: <83oatvkemq.fsf@gnu.org> <87zjdeq8kj.fsf@gnu.org> <83bnpc48m4.fsf@gnu.org> Date: Fri, 14 Nov 2014 04:25:01 -0300 In-Reply-To: <83bnpc48m4.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 16 Oct 2014 13:22:27 +0300") Message-ID: <87sihmtfaq.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -6.0 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) Eli Zaretskii writes: > Ping! > Hi Eli, Sorry for the delay but I wanted to have a Windows machine at hand to test this. FYI I tested this with Windows 7, Python 3.3, 3.4 and 2.7.8 and wasn't able to replicate it. The interpreter started without hanging. It also worked on Windows XP With Python 2.7, so my best guess is that this is a very especific problem that only happens with some particular combination of Windows and Python version (I recall something similar in an old bug). Could you tell me those versions? And if you are still being able to replicate this issue, does this patch help?: diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 122f4ec..018ebd0 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -94,13 +94,16 @@ ;; python-shell-interpreter-args ;; "-i C:\\Python27\\Scripts\\ipython-script.py") =20 -;; If you are experiencing missing or delayed output in your shells, -;; that's likely caused by your Operating System's pipe buffering -;; (e.g. this is known to happen running CPython 3.3.4 in Windows 7. -;; See URL `http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D17304'). To -;; fix this, using CPython's "-u" commandline argument or setting the +;; Hangs, missing and/or delayed output in shells were known to happen +;; on Windows, if you are experiencing a similar behavior, that's +;; likely caused by your Operating System's pipe buffering (e.g. this +;; used to happen running CPython 3.3.4 in Windows 7. See URL +;; `http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D17304'). To fix +;; this, using CPython's "-u" commandline argument or setting the ;; "PYTHONUNBUFFERED" environment variable should help: See URL -;; `https://docs.python.org/3/using/cmdline.html#cmdoption-u'. +;; `https://docs.python.org/3/using/cmdline.html#cmdoption-u'. For +;; Windows "PYTHONUNBUFFERED" is set to "1" automatically by +;; `python-shell-calculate-process-environment`. =20 ;; The interaction relies upon having prompts for input (e.g. ">>> " ;; and "... " in standard Python shell) and output (e.g. "Out[1]: " in @@ -2095,7 +2098,11 @@ uniqueness for different types of configurations." "Calculate process environment given `python-shell-virtualenv-root'." (let ((process-environment (append python-shell-process-environment - process-environment nil)) + process-environment + ;; Avoid hangs on Windows out of the + ;; box. See Bug#18595 and Bug#18596. + (when (eq system-type 'windows-nt) + '("PYTHONUNBUFFERED=3D1")))) (virtualenv (if python-shell-virtualenv-root (directory-file-name python-shell-virtualenv-root) nil))) Thanks, Fabi=C3=A1n From unknown Mon Aug 18 19:33:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18596: 25.0.50; MS-Windows needs a different default for python-shell-interpreter-args Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Nov 2014 10:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18596 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) Cc: 18596@debbugs.gnu.org X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Reply-To: Eli Zaretskii Received: via spool by submit@debbugs.gnu.org id=B.141596153520927 (code B ref -1); Fri, 14 Nov 2014 10:39:01 +0000 Received: (at submit) by debbugs.gnu.org; 14 Nov 2014 10:38:55 +0000 Received: from localhost ([127.0.0.1]:60214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpEHH-0005RS-3P for submit@debbugs.gnu.org; Fri, 14 Nov 2014 05:38:55 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46402) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpEHF-0005RK-Ch for submit@debbugs.gnu.org; Fri, 14 Nov 2014 05:38:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XpEH6-0002SQ-Vg for submit@debbugs.gnu.org; Fri, 14 Nov 2014 05:38:53 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60338) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpEH6-0002SL-Td for submit@debbugs.gnu.org; Fri, 14 Nov 2014 05:38:44 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpEH1-00066f-0I for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2014 05:38:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XpEGv-0002RJ-3q for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2014 05:38:38 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]:38140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpEGu-0002R1-S8; Fri, 14 Nov 2014 05:38:33 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NF000700YKCPE00@a-mtaout20.012.net.il>; Fri, 14 Nov 2014 12:38:31 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NF00074TYW6PK10@a-mtaout20.012.net.il>; Fri, 14 Nov 2014 12:38:31 +0200 (IST) Date: Fri, 14 Nov 2014 12:38:27 +0200 From: Eli Zaretskii In-reply-to: <87sihmtfaq.fsf@gnu.org> Message-id: <83oasahxss.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: QUOTED-PRINTABLE X-012-Sender: halo1@inter.net.il References: <83oatvkemq.fsf@gnu.org> <87zjdeq8kj.fsf@gnu.org> <83bnpc48m4.fsf@gnu.org> <87sihmtfaq.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -6.0 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: fgallina@gnu.org (Fabi=C3=A1n Ezequiel Gallina) > Cc: bug-gnu-emacs@gnu.org > Date: Fri, 14 Nov 2014 04:25:01 -0300 >=20 > FYI I tested this with Windows 7, Python 3.3, 3.4 and 2.7.8 and was= n't > able to replicate it. The interpreter started without hanging. How did you try this? The recipe that (still) hangs for me is the on= e used by the test suite: (run-python (executable-find "python") nil) > It also worked on Windows XP With Python 2.7, so my best guess is t= hat > this is a very especific problem that only happens with some partic= ular > combination of Windows and Python version (I recall something simil= ar in > an old bug). >=20 > Could you tell me those versions? Both Windows 7 and XP, Python 2.6.6. > And if you are still being able to replicate this issue, does this = patch > help?: I prefer to wait for you to try the above recipe and tell me if you can reproduce the problem. If you can't, I will try the patch. Thanks. From unknown Mon Aug 18 19:33:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18596: 25.0.50; MS-Windows needs a different default for python-shell-interpreter-args Resent-From: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Nov 2014 13:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18596 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 18596@debbugs.gnu.org X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.141597094412053 (code B ref -1); Fri, 14 Nov 2014 13:16:01 +0000 Received: (at submit) by debbugs.gnu.org; 14 Nov 2014 13:15:44 +0000 Received: from localhost ([127.0.0.1]:60277 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpGj1-00037j-VG for submit@debbugs.gnu.org; Fri, 14 Nov 2014 08:15:44 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50388) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpGiy-000348-Q2 for submit@debbugs.gnu.org; Fri, 14 Nov 2014 08:15:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XpGii-00060T-7i for submit@debbugs.gnu.org; Fri, 14 Nov 2014 08:15:40 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37556) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpGii-0005vc-5Y for submit@debbugs.gnu.org; Fri, 14 Nov 2014 08:15:24 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpGZL-0007MZ-AY for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2014 08:05:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XpGZF-0002rJ-SG for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2014 08:05:43 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47223) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpGZF-0002rF-OH for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2014 08:05:37 -0500 Received: from [190.246.172.180] (port=55654 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1XpGZC-0002xj-1K; Fri, 14 Nov 2014 08:05:36 -0500 From: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) References: <83oatvkemq.fsf@gnu.org> <87zjdeq8kj.fsf@gnu.org> <83bnpc48m4.fsf@gnu.org> <87sihmtfaq.fsf@gnu.org> <83oasahxss.fsf@gnu.org> Date: Fri, 14 Nov 2014 10:05:28 -0300 In-Reply-To: <83oasahxss.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 14 Nov 2014 12:38:27 +0200") Message-ID: <87bnoahqzr.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Eli Zaretskii writes: >> From: fgallina@gnu.org (Fabi=C3=A1n Ezequiel Gallina) >> Cc: bug-gnu-emacs@gnu.org >> Date: Fri, 14 Nov 2014 04:25:01 -0300 >>=20 >> FYI I tested this with Windows 7, Python 3.3, 3.4 and 2.7.8 and wasn't >> able to replicate it. The interpreter started without hanging. > > How did you try this? The recipe that (still) hangs for me is the one > used by the test suite: > > (run-python (executable-find "python") nil) > I tried this one by starting the interpreter as a user would and since the "-i" is in the default interpreter arguments the shell doesn't hang. >> It also worked on Windows XP With Python 2.7, so my best guess is that >> this is a very especific problem that only happens with some particular >> combination of Windows and Python version (I recall something similar in >> an old bug). >>=20 >> Could you tell me those versions? > > Both Windows 7 and XP, Python 2.6.6. > >> And if you are still being able to replicate this issue, does this patch >> help?: > > I prefer to wait for you to try the above recipe and tell me if you > can reproduce the problem. If you can't, I will try the patch. > I can only recreate the hang if I remove the "-i" switch in the default command, so I think the real issue here is to fix how tests define the command to run rather than changing the defaults on python.el. With this said, I think this bug should be closed and we should move to #18595. Regards, Fabi=C3=A1n From unknown Mon Aug 18 19:33:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18596: 25.0.50; MS-Windows needs a different default for python-shell-interpreter-args Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Nov 2014 14:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18596 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) Cc: 18596@debbugs.gnu.org X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Reply-To: Eli Zaretskii Received: via spool by submit@debbugs.gnu.org id=B.141597539726792 (code B ref -1); Fri, 14 Nov 2014 14:30:03 +0000 Received: (at submit) by debbugs.gnu.org; 14 Nov 2014 14:29:57 +0000 Received: from localhost ([127.0.0.1]:60310 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpHsq-0006y4-F1 for submit@debbugs.gnu.org; Fri, 14 Nov 2014 09:29:56 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39444) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpHsm-0006xu-IO for submit@debbugs.gnu.org; Fri, 14 Nov 2014 09:29:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XpHsf-0002si-OK for submit@debbugs.gnu.org; Fri, 14 Nov 2014 09:29:52 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:46920) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpHsf-0002sZ-LL for submit@debbugs.gnu.org; Fri, 14 Nov 2014 09:29:45 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpHsZ-0005Up-DR for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2014 09:29:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XpHsT-0002qq-G1 for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2014 09:29:39 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]:57008) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpHsT-0002qk-7Q; Fri, 14 Nov 2014 09:29:33 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NF100H0090VJT00@a-mtaout22.012.net.il>; Fri, 14 Nov 2014 16:29:31 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NF100H5R9L69X50@a-mtaout22.012.net.il>; Fri, 14 Nov 2014 16:29:31 +0200 (IST) Date: Fri, 14 Nov 2014 16:29:23 +0200 From: Eli Zaretskii In-reply-to: <87bnoahqzr.fsf@gnu.org> Message-id: <83k32xj1oc.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: QUOTED-PRINTABLE X-012-Sender: halo1@inter.net.il References: <83oatvkemq.fsf@gnu.org> <87zjdeq8kj.fsf@gnu.org> <83bnpc48m4.fsf@gnu.org> <87sihmtfaq.fsf@gnu.org> <83oasahxss.fsf@gnu.org> <87bnoahqzr.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: fgallina@gnu.org (Fabi=C3=A1n Ezequiel Gallina) > Cc: bug-gnu-emacs@gnu.org > Date: Fri, 14 Nov 2014 10:05:28 -0300 >=20 > Eli Zaretskii writes: >=20 > >> From: fgallina@gnu.org (Fabi=C3=A1n Ezequiel Gallina) > >> Cc: bug-gnu-emacs@gnu.org > >> Date: Fri, 14 Nov 2014 04:25:01 -0300 > >>=20 > >> FYI I tested this with Windows 7, Python 3.3, 3.4 and 2.7.8 and = wasn't > >> able to replicate it. The interpreter started without hanging. > > > > How did you try this? The recipe that (still) hangs for me is th= e one > > used by the test suite: > > > > (run-python (executable-find "python") nil) > > >=20 > I tried this one by starting the interpreter as a user would and si= nce > the "-i" is in the default interpreter arguments the shell doesn't = hang. I'm not sure what that means. If it means you used "M-x run-python", then that's not the use case I'm talking about. I'm talking about th= e above recipe. > >> It also worked on Windows XP With Python 2.7, so my best guess i= s that > >> this is a very especific problem that only happens with some par= ticular > >> combination of Windows and Python version (I recall something si= milar in > >> an old bug). > >>=20 > >> Could you tell me those versions? > > > > Both Windows 7 and XP, Python 2.6.6. > > > >> And if you are still being able to replicate this issue, does th= is patch > >> help?: > > > > I prefer to wait for you to try the above recipe and tell me if y= ou > > can reproduce the problem. If you can't, I will try the patch. > > >=20 > I can only recreate the hang if I remove the "-i" switch in the def= ault > command, so I think the real issue here is to fix how tests define = the > command to run rather than changing the defaults on python.el. Wit= h > this said, I think this bug should be closed and we should move to > #18595. Are you saying that it is OK for the above form to hang? From unknown Mon Aug 18 19:33:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18596: 25.0.50; MS-Windows needs a different default for python-shell-interpreter-args Resent-From: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Nov 2014 16:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18596 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 18596@debbugs.gnu.org X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.141598093314559 (code B ref -1); Fri, 14 Nov 2014 16:03:01 +0000 Received: (at submit) by debbugs.gnu.org; 14 Nov 2014 16:02:13 +0000 Received: from localhost ([127.0.0.1]:60943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpJK8-0003ml-Ek for submit@debbugs.gnu.org; Fri, 14 Nov 2014 11:02:12 -0500 Received: from eggs.gnu.org ([208.118.235.92]:60247) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpJK5-0003mZ-Jh for submit@debbugs.gnu.org; Fri, 14 Nov 2014 11:02:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XpJJz-0007zB-Ol for submit@debbugs.gnu.org; Fri, 14 Nov 2014 11:02:09 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:44613) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpJJz-0007z5-Mp for submit@debbugs.gnu.org; Fri, 14 Nov 2014 11:02:03 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33672) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpJJu-0004ch-5a for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2014 11:02:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XpJJn-0007wM-1U for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2014 11:01:58 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpJJm-0007wH-Ua for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2014 11:01:50 -0500 Received: from [190.246.172.180] (port=56823 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1XpJJj-0008JQ-L2; Fri, 14 Nov 2014 11:01:48 -0500 From: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) References: <83oatvkemq.fsf@gnu.org> <87zjdeq8kj.fsf@gnu.org> <83bnpc48m4.fsf@gnu.org> <87sihmtfaq.fsf@gnu.org> <83oasahxss.fsf@gnu.org> <87bnoahqzr.fsf@gnu.org> <83k32xj1oc.fsf@gnu.org> Date: Fri, 14 Nov 2014 13:01:45 -0300 In-Reply-To: <83k32xj1oc.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 14 Nov 2014 16:29:23 +0200") Message-ID: <87vbmhg49i.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Eli Zaretskii writes: >> >> I can only recreate the hang if I remove the "-i" switch in the default >> command, so I think the real issue here is to fix how tests define the >> command to run rather than changing the defaults on python.el. With >> this said, I think this bug should be closed and we should move to >> #18595. > > Are you saying that it is OK for the above form to hang? > Yes, on Windows the "-i" switch is required to avoid the hang and M-x run-python does the right thing adding it by default. We just need to fix the tests so they don't forget about "-i". From unknown Mon Aug 18 19:33:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18596: 25.0.50; MS-Windows needs a different default for python-shell-interpreter-args Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Nov 2014 16:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18596 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) Cc: 18596@debbugs.gnu.org X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Reply-To: Eli Zaretskii Received: via spool by submit@debbugs.gnu.org id=B.141598388619573 (code B ref -1); Fri, 14 Nov 2014 16:52:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Nov 2014 16:51:26 +0000 Received: from localhost ([127.0.0.1]:32783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpK5l-00055c-Fp for submit@debbugs.gnu.org; Fri, 14 Nov 2014 11:51:25 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41619) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpK5k-00055T-3q for submit@debbugs.gnu.org; Fri, 14 Nov 2014 11:51:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XpK5d-0008CV-0I for submit@debbugs.gnu.org; Fri, 14 Nov 2014 11:51:23 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55671) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpK5c-0008C6-Jf for submit@debbugs.gnu.org; Fri, 14 Nov 2014 11:51:16 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpK5W-0001Hl-Md for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2014 11:51:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XpK5Q-0007zO-Kg for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2014 11:51:10 -0500 Received: from mtaout25.012.net.il ([80.179.55.181]:60858) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpK5Q-0007zK-Ck; Fri, 14 Nov 2014 11:51:04 -0500 Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NF100300FEN2N00@mtaout25.012.net.il>; Fri, 14 Nov 2014 18:46:39 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NF1002AHFXRC920@mtaout25.012.net.il>; Fri, 14 Nov 2014 18:46:39 +0200 (IST) Date: Fri, 14 Nov 2014 18:50:52 +0200 From: Eli Zaretskii In-reply-to: <87vbmhg49i.fsf@gnu.org> Message-id: <83wq6xhgk3.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: QUOTED-PRINTABLE X-012-Sender: halo1@inter.net.il References: <83oatvkemq.fsf@gnu.org> <87zjdeq8kj.fsf@gnu.org> <83bnpc48m4.fsf@gnu.org> <87sihmtfaq.fsf@gnu.org> <83oasahxss.fsf@gnu.org> <87bnoahqzr.fsf@gnu.org> <83k32xj1oc.fsf@gnu.org> <87vbmhg49i.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: fgallina@gnu.org (Fabi=E1n Ezequiel Gallina) > Cc: bug-gnu-emacs@gnu.org > Date: Fri, 14 Nov 2014 13:01:45 -0300 >=20 > Eli Zaretskii writes: > >>=20 > >> I can only recreate the hang if I remove the "-i" switch in the = default > >> command, so I think the real issue here is to fix how tests defi= ne the > >> command to run rather than changing the defaults on python.el. = With > >> this said, I think this bug should be closed and we should move = to > >> #18595. > > > > Are you saying that it is OK for the above form to hang? > > >=20 > Yes, on Windows the "-i" switch is required to avoid the hang and M= -x > run-python does the right thing adding it by default. I know that "M-x run-python" does that, but I think run-python itself should do that, too. It's a bug for it to hang like that. > We just need to fix the tests so they don't forget about "-i". That's a related, but separate problem. From unknown Mon Aug 18 19:33:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18596: 25.0.50; MS-Windows needs a different default for python-shell-interpreter-args Resent-From: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Nov 2014 20:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18596 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 18596@debbugs.gnu.org X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.141599856311816 (code B ref -1); Fri, 14 Nov 2014 20:57:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Nov 2014 20:56:03 +0000 Received: from localhost ([127.0.0.1]:32897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpNuV-00034W-5g for submit@debbugs.gnu.org; Fri, 14 Nov 2014 15:56:03 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40723) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpNuT-000347-0t for submit@debbugs.gnu.org; Fri, 14 Nov 2014 15:56:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XpNuN-00060F-7c for submit@debbugs.gnu.org; Fri, 14 Nov 2014 15:56:00 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33409) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpNuN-00060B-5L for submit@debbugs.gnu.org; Fri, 14 Nov 2014 15:55:55 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpNuH-0001FZ-HC for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2014 15:55:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XpNuC-0005yp-2Q for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2014 15:55:49 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpNuB-0005yk-Vv for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2014 15:55:44 -0500 Received: from [190.246.172.180] (port=59582 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1XpNuB-0006Sh-1b; Fri, 14 Nov 2014 15:55:43 -0500 From: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) References: <83oatvkemq.fsf@gnu.org> <87zjdeq8kj.fsf@gnu.org> <83bnpc48m4.fsf@gnu.org> <87sihmtfaq.fsf@gnu.org> <83oasahxss.fsf@gnu.org> <87bnoahqzr.fsf@gnu.org> <83k32xj1oc.fsf@gnu.org> <87vbmhg49i.fsf@gnu.org> <83wq6xhgk3.fsf@gnu.org> Date: Fri, 14 Nov 2014 17:55:40 -0300 In-Reply-To: <83wq6xhgk3.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 14 Nov 2014 18:50:52 +0200") Message-ID: <87wq6xo62b.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Eli Zaretskii writes: >> From: fgallina@gnu.org (Fabi=C3=A1n Ezequiel Gallina) >> Cc: bug-gnu-emacs@gnu.org >> Date: Fri, 14 Nov 2014 13:01:45 -0300 >> >> Eli Zaretskii writes: >> >> >> >> I can only recreate the hang if I remove the "-i" switch in the defau= lt >> >> command, so I think the real issue here is to fix how tests define the >> >> command to run rather than changing the defaults on python.el. With >> >> this said, I think this bug should be closed and we should move to >> >> #18595. >> > >> > Are you saying that it is OK for the above form to hang? >> > >> >> Yes, on Windows the "-i" switch is required to avoid the hang and M-x >> run-python does the right thing adding it by default. > > I know that "M-x run-python" does that, but I think run-python itself > should do that, too. It's a bug for it to hang like that. > I don't agree, run-python will run whatever you tell it to run and while I agree that malformed commands hanging it are not fun, that's the very same reason why sane defaults are provided and why the commentary section state possible problems clearly. >> We just need to fix the tests so they don't forget about "-i". > > That's a related, but separate problem. > I'll focus on that alone, I'm still not convinced on the course of action for this one. From unknown Mon Aug 18 19:33:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18596: 25.0.50; MS-Windows needs a different default for python-shell-interpreter-args Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Nov 2014 21:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18596 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) Cc: 18596@debbugs.gnu.org X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Reply-To: Eli Zaretskii Received: via spool by submit@debbugs.gnu.org id=B.141599909712720 (code B ref -1); Fri, 14 Nov 2014 21:05:01 +0000 Received: (at submit) by debbugs.gnu.org; 14 Nov 2014 21:04:57 +0000 Received: from localhost ([127.0.0.1]:32906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpO36-0003J5-R9 for submit@debbugs.gnu.org; Fri, 14 Nov 2014 16:04:57 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42801) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpO35-0003Iw-Gy for submit@debbugs.gnu.org; Fri, 14 Nov 2014 16:04:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XpO2x-00007s-6z for submit@debbugs.gnu.org; Fri, 14 Nov 2014 16:04:55 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:58848) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpO2x-00007m-4G for submit@debbugs.gnu.org; Fri, 14 Nov 2014 16:04:47 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpO2r-0002X5-7K for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2014 16:04:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XpO2b-0008Vx-MM for bug-gnu-emacs@gnu.org; Fri, 14 Nov 2014 16:04:41 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]:50246) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XpO2b-0008Vr-Et; Fri, 14 Nov 2014 16:04:25 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NF100L00RDE1Y00@a-mtaout22.012.net.il>; Fri, 14 Nov 2014 23:04:24 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NF100KNERV5O980@a-mtaout22.012.net.il>; Fri, 14 Nov 2014 23:04:17 +0200 (IST) Date: Fri, 14 Nov 2014 23:04:01 +0200 From: Eli Zaretskii In-reply-to: <87wq6xo62b.fsf@gnu.org> Message-id: <83h9y1h4u6.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: QUOTED-PRINTABLE X-012-Sender: halo1@inter.net.il References: <83oatvkemq.fsf@gnu.org> <87zjdeq8kj.fsf@gnu.org> <83bnpc48m4.fsf@gnu.org> <87sihmtfaq.fsf@gnu.org> <83oasahxss.fsf@gnu.org> <87bnoahqzr.fsf@gnu.org> <83k32xj1oc.fsf@gnu.org> <87vbmhg49i.fsf@gnu.org> <83wq6xhgk3.fsf@gnu.org> <87wq6xo62b.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: fgallina@gnu.org (Fabi=C3=A1n Ezequiel Gallina) > Cc: bug-gnu-emacs@gnu.org > Date: Fri, 14 Nov 2014 17:55:40 -0300 >=20 > >> > Are you saying that it is OK for the above form to hang? > >> > > >> > >> Yes, on Windows the "-i" switch is required to avoid the hang an= d M-x > >> run-python does the right thing adding it by default. > > > > I know that "M-x run-python" does that, but I think run-python it= self > > should do that, too. It's a bug for it to hang like that. > > >=20 > I don't agree, run-python will run whatever you tell it to run I told it to run, not to hang! And it doesn't hang on Unix, so it shouldn't on Windows. > and while I agree that malformed commands hanging it are not fun, > that's the very same reason why sane defaults are provided and why > the commentary section state possible problems clearly. I'm surprised you consider documenting bugs to be a solution for thos= e bugs. Bugs should be fixed, not documented. If Emacs knows that in certain situation it should invoke Python with -i, it should do that automatically. Or it should do something else to fix the hang, but leaving the hanging behavior is IMO simply wrong, and even unbecoming= . > >> We just need to fix the tests so they don't forget about "-i". > > > > That's a related, but separate problem. > > >=20 > I'll focus on that alone, I'm still not convinced on the course of > action for this one. I'm okay with any course of action, provided that the result will be that the form I provided as recipe will not hang. From unknown Mon Aug 18 19:33:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18596: 25.0.50; MS-Windows needs a different default for python-shell-interpreter-args Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Nov 2014 00:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18596 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: =?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina , 18596@debbugs.gnu.org Received: via spool by 18596-submit@debbugs.gnu.org id=B18596.141601138732321 (code B ref 18596); Sat, 15 Nov 2014 00:30:03 +0000 Received: (at 18596) by debbugs.gnu.org; 15 Nov 2014 00:29:47 +0000 Received: from localhost ([127.0.0.1]:32931 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpRFL-0008PD-0O for submit@debbugs.gnu.org; Fri, 14 Nov 2014 19:29:47 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:62540) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpRFI-0008P3-49 for 18596@debbugs.gnu.org; Fri, 14 Nov 2014 19:29:45 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArQIAGA2ZVRLd+sd/2dsb2JhbABbgw7SVIMaBAICgRwXAQEBAQEBfIQDAQEDAVYjBQsLNBIUGA0QARMuiB0J0QQBAQEBAQEEAQEBAR6RFAeESwWMC6cXgXaCNoFkH4J7AQEB X-IPAS-Result: ArQIAGA2ZVRLd+sd/2dsb2JhbABbgw7SVIMaBAICgRwXAQEBAQEBfIQDAQEDAVYjBQsLNBIUGA0QARMuiB0J0QQBAQEBAQEEAQEBAR6RFAeESwWMC6cXgXaCNoFkH4J7AQEB X-IronPort-AV: E=Sophos;i="5.07,380,1413259200"; d="scan'208";a="97056400" Received: from 75-119-235-29.dsl.teksavvy.com (HELO pastel.home) ([75.119.235.29]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 14 Nov 2014 19:29:43 -0500 Received: by pastel.home (Postfix, from userid 20848) id 1DAA288E7; Fri, 14 Nov 2014 19:29:43 -0500 (EST) From: Stefan Monnier Message-ID: References: <83oatvkemq.fsf@gnu.org> <87zjdeq8kj.fsf@gnu.org> <83bnpc48m4.fsf@gnu.org> <87sihmtfaq.fsf@gnu.org> <83oasahxss.fsf@gnu.org> <87bnoahqzr.fsf@gnu.org> <83k32xj1oc.fsf@gnu.org> <87vbmhg49i.fsf@gnu.org> <83wq6xhgk3.fsf@gnu.org> <87wq6xo62b.fsf@gnu.org> <83h9y1h4u6.fsf@gnu.org> Date: Fri, 14 Nov 2014 19:29:43 -0500 In-Reply-To: <83h9y1h4u6.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 14 Nov 2014 23:04:01 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > I'm surprised you consider documenting bugs to be a solution for those > bugs. Bugs should be fixed, not documented. If Emacs knows that in > certain situation it should invoke Python with -i, it should do that > automatically. Or it should do something else to fix the hang, but > leaving the hanging behavior is IMO simply wrong, and even unbecoming. Adding "-i" to a command received as argument would definitely be problematic, but if the command specified is "nil", I agree that we should provide the needed args for the command to run correctly, (i.e. include "-i"). Stefan From unknown Mon Aug 18 19:33:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18596: 25.0.50; MS-Windows needs a different default for python-shell-interpreter-args Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Nov 2014 07:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18596 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: fgallina@gnu.org, 18596@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 18596-submit@debbugs.gnu.org id=B18596.141603706115590 (code B ref 18596); Sat, 15 Nov 2014 07:38:02 +0000 Received: (at 18596) by debbugs.gnu.org; 15 Nov 2014 07:37:41 +0000 Received: from localhost ([127.0.0.1]:33174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpXvQ-00043O-Rm for submit@debbugs.gnu.org; Sat, 15 Nov 2014 02:37:41 -0500 Received: from mtaout21.012.net.il ([80.179.55.169]:38251) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XpXvN-000433-67 for 18596@debbugs.gnu.org; Sat, 15 Nov 2014 02:37:38 -0500 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NF200D00L6KUO00@a-mtaout21.012.net.il> for 18596@debbugs.gnu.org; Sat, 15 Nov 2014 09:37:35 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NF200DCGL6NQT20@a-mtaout21.012.net.il>; Sat, 15 Nov 2014 09:37:35 +0200 (IST) Date: Sat, 15 Nov 2014 09:37:20 +0200 From: Eli Zaretskii In-reply-to: X-012-Sender: halo1@inter.net.il Message-id: <83bno8hq33.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 8BIT References: <83oatvkemq.fsf@gnu.org> <87zjdeq8kj.fsf@gnu.org> <83bnpc48m4.fsf@gnu.org> <87sihmtfaq.fsf@gnu.org> <83oasahxss.fsf@gnu.org> <87bnoahqzr.fsf@gnu.org> <83k32xj1oc.fsf@gnu.org> <87vbmhg49i.fsf@gnu.org> <83wq6xhgk3.fsf@gnu.org> <87wq6xo62b.fsf@gnu.org> <83h9y1h4u6.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Stefan Monnier > Cc: fgallina@gnu.org (Fabián Ezequiel Gallina), > 18596@debbugs.gnu.org > Date: Fri, 14 Nov 2014 19:29:43 -0500 > > > I'm surprised you consider documenting bugs to be a solution for those > > bugs. Bugs should be fixed, not documented. If Emacs knows that in > > certain situation it should invoke Python with -i, it should do that > > automatically. Or it should do something else to fix the hang, but > > leaving the hanging behavior is IMO simply wrong, and even unbecoming. > > Adding "-i" to a command received as argument would definitely be > problematic I agree. When a command is given, run-python should obey it. In this case, it's the responsibility of whoever provides the command to make it DTRT. > but if the command specified is "nil", I agree that we should > provide the needed args for the command to run correctly, > (i.e. include "-i"). Obviously, I agree with that, too ;-) From unknown Mon Aug 18 19:33:34 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Eli Zaretskii Subject: bug#18596: closed (25.0.50; MS-Windows needs a different default for python-shell-interpreter-args) Message-ID: References: <87egt3gr99.fsf@gnu.org> <83oatvkemq.fsf@gnu.org> X-Gnu-PR-Message: they-closed 18596 X-Gnu-PR-Package: emacs Reply-To: 18596@debbugs.gnu.org Date: Sun, 16 Nov 2014 14:23:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1416147783-26997-1" This is a multi-part message in MIME format... ------------=_1416147783-26997-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #18596: 25.0.50; MS-Windows needs a different default for python-shell-inte= rpreter-args which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 18596@debbugs.gnu.org. --=20 18596: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D18596 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1416147783-26997-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 18596-done) by debbugs.gnu.org; 16 Nov 2014 14:22:03 +0000 Received: from localhost ([127.0.0.1]:34476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xq0iJ-0006zi-BW for submit@debbugs.gnu.org; Sun, 16 Nov 2014 09:22:03 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:41874) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xq0iH-0006zG-O3 for 18596-done@debbugs.gnu.org; Sun, 16 Nov 2014 09:22:02 -0500 Received: from [190.246.172.180] (port=40481 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Xq0iC-0007jx-LA for 18596-done@debbugs.gnu.org; Sun, 16 Nov 2014 09:21:57 -0500 From: fgallina@gnu.org (=?utf-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) To: 18596-done@debbugs.gnu.org Subject: 25.0.50; MS-Windows needs a different default for python-shell-interpreter-args Date: Sun, 16 Nov 2014 11:21:54 -0300 Message-ID: <87egt3gr99.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 18596-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Fixed at 651ebee in the master branch. ------------=_1416147783-26997-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 1 Oct 2014 15:13:21 +0000 Received: from localhost ([127.0.0.1]:57556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZLai-0000r2-6y for submit@debbugs.gnu.org; Wed, 01 Oct 2014 11:13:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35784) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZLag-0000qu-2x for submit@debbugs.gnu.org; Wed, 01 Oct 2014 11:13:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZLaV-0001c0-0I for submit@debbugs.gnu.org; Wed, 01 Oct 2014 11:13:18 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD, T_MANY_HDRS_LCASE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZLaU-0001bs-TA for submit@debbugs.gnu.org; Wed, 01 Oct 2014 11:13:06 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37463) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZLaN-0003Tl-BJ for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 11:13:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZLaE-0001Zz-Kn for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 11:12:59 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:60481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZLaE-0001Zv-D4; Wed, 01 Oct 2014 11:12:50 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NCR00D00TYU3V00@a-mtaout22.012.net.il>; Wed, 01 Oct 2014 18:12:49 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NCR00D8NU9D2V20@a-mtaout22.012.net.il>; Wed, 01 Oct 2014 18:12:49 +0300 (IDT) Date: Wed, 01 Oct 2014 18:12:45 +0300 From: Eli Zaretskii Subject: 25.0.50; MS-Windows needs a different default for python-shell-interpreter-args X-012-Sender: halo1@inter.net.il To: bug-gnu-emacs@gnu.org Message-id: <83oatvkemq.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: submit Cc: =?iso-8859-1?Q?Fabi=E1n?= Ezequiel Gallina X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) With the default value, 'run-python' hangs in accept-process-output. This fixes that for me: --- lisp/progmodes/python.el~0 2014-10-01 06:33:59 +0300 +++ lisp/progmodes/python.el 2014-10-01 18:10:48 +0300 @@ -1739,7 +1739,8 @@ :group 'python :safe 'stringp) -(defcustom python-shell-interpreter-args "-i" +(defcustom python-shell-interpreter-args + (if (eq system-type 'windows-nt) "-i -u" "-i") "Default arguments for the Python interpreter." :type 'string :group 'python) In GNU Emacs 25.0.50.10 (i686-pc-mingw32) of 2014-10-01 on HOME-C4E4A596F7 Repository revision: 117996 dmantipov@yandex.ru-20141001132108-zdsxru2390mqyjlu Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --prefix=/d/usr --enable-checking=yes,glyphs 'CFLAGS=-O0 -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB Important settings: value of $LANG: ENU locale-coding-system: cp1255 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Recent input: M-x r e p o r t - e m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32notify w32 multi-tty emacs) Memory information: ((conses 8 78619 5657) (symbols 32 17980 0) (miscs 32 36 97) (strings 16 12837 3606) (string-bytes 1 313654) (vectors 8 9980) (vector-slots 4 389907 2806) (floats 8 64 199) (intervals 28 240 95) (buffers 516 11)) ------------=_1416147783-26997-1-- From unknown Mon Aug 18 19:33:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18596: 25.0.50; MS-Windows needs a different default for python-shell-interpreter-args Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Nov 2014 15:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18596 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) Cc: 18596@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 18596-submit@debbugs.gnu.org id=B18596.14161527828463 (code B ref 18596); Sun, 16 Nov 2014 15:47:02 +0000 Received: (at 18596) by debbugs.gnu.org; 16 Nov 2014 15:46:22 +0000 Received: from localhost ([127.0.0.1]:35455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xq21t-0002CR-Ji for submit@debbugs.gnu.org; Sun, 16 Nov 2014 10:46:21 -0500 Received: from mtaout23.012.net.il ([80.179.55.175]:51673) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xq21g-0002C3-Dc for 18596@debbugs.gnu.org; Sun, 16 Nov 2014 10:46:18 -0500 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NF500L001Z94G00@a-mtaout23.012.net.il> for 18596@debbugs.gnu.org; Sun, 16 Nov 2014 17:46:07 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NF500L262GU4V10@a-mtaout23.012.net.il>; Sun, 16 Nov 2014 17:46:07 +0200 (IST) Date: Sun, 16 Nov 2014 17:45:55 +0200 From: Eli Zaretskii In-reply-to: <87egt3gr99.fsf@gnu.org> X-012-Sender: halo1@inter.net.il Message-id: <837fyvdu8c.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 8BIT References: <83oatvkemq.fsf@gnu.org> <87egt3gr99.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: fgallina@gnu.org (Fabián Ezequiel Gallina) > Date: Sun, 16 Nov 2014 11:21:54 -0300 > > > Fixed at 651ebee in the master branch. Thanks. But M-: (run-python (executable-find "python") nil) RET still hangs for me on MS-Windows. What am I missing? From unknown Mon Aug 18 19:33:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18596: 25.0.50; MS-Windows needs a different default for python-shell-interpreter-args Resent-From: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Nov 2014 21:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18596 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 18596@debbugs.gnu.org Received: via spool by 18596-submit@debbugs.gnu.org id=B18596.141617261619169 (code B ref 18596); Sun, 16 Nov 2014 21:17:01 +0000 Received: (at 18596) by debbugs.gnu.org; 16 Nov 2014 21:16:56 +0000 Received: from localhost ([127.0.0.1]:35624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xq7Bn-0004z6-85 for submit@debbugs.gnu.org; Sun, 16 Nov 2014 16:16:55 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:48296) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xq7Bl-0004yy-6x for 18596@debbugs.gnu.org; Sun, 16 Nov 2014 16:16:53 -0500 Received: from [190.246.172.180] (port=41135 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Xq7Bi-0008IW-RE; Sun, 16 Nov 2014 16:16:51 -0500 From: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) References: <83oatvkemq.fsf@gnu.org> <87egt3gr99.fsf@gnu.org> <837fyvdu8c.fsf@gnu.org> Date: Sun, 16 Nov 2014 18:16:47 -0300 In-Reply-To: <837fyvdu8c.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 16 Nov 2014 17:45:55 +0200") Message-ID: <87ioiezw00.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Eli Zaretskii writes: >> From: fgallina@gnu.org (Fabi=C3=A1n Ezequiel Gallina) >> Date: Sun, 16 Nov 2014 11:21:54 -0300 >>=20 >>=20 >> Fixed at 651ebee in the master branch. > > Thanks. But > > M-: (run-python (executable-find "python") nil) RET > > still hangs for me on MS-Windows. What am I missing? > I believe we agreed on the fix being that the defaults should not hang. The fact that your example hangs on Window is bad but it's not worth the trouble of mangling the provided command and trying to add the "-i" switch to it as it would break other cases. >From the Python help: -i : inspect interactively after running script; forces a prompt even if stdin does not appear to be a terminal; also PYTHONINSPECT=3Dx =20 So I tried a solution that was ought to leave everyone happy, which was setting PYTHONINSPECT env variable before run-python, but that didn't help on Windows either. If you have other ideas I'm eager to try them out. Thanks, Fabi=C3=A1n From unknown Mon Aug 18 19:33:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18596: 25.0.50; MS-Windows needs a different default for python-shell-interpreter-args Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Nov 2014 03:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18596 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: fgallina@gnu.org (=?UTF-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) Cc: 18596@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 18596-submit@debbugs.gnu.org id=B18596.14161955373254 (code B ref 18596); Mon, 17 Nov 2014 03:39:01 +0000 Received: (at 18596) by debbugs.gnu.org; 17 Nov 2014 03:38:57 +0000 Received: from localhost ([127.0.0.1]:35673 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XqD9U-0000qQ-Oq for submit@debbugs.gnu.org; Sun, 16 Nov 2014 22:38:57 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]:37130) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XqD9R-0000q8-JH for 18596@debbugs.gnu.org; Sun, 16 Nov 2014 22:38:55 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NF500500Z1HG700@a-mtaout22.012.net.il> for 18596@debbugs.gnu.org; Mon, 17 Nov 2014 05:38:52 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NF5005EVZGRD720@a-mtaout22.012.net.il>; Mon, 17 Nov 2014 05:38:52 +0200 (IST) Date: Mon, 17 Nov 2014 05:38:41 +0200 From: Eli Zaretskii In-reply-to: <87ioiezw00.fsf@gnu.org> X-012-Sender: halo1@inter.net.il Message-id: <83ioiecx8e.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <83oatvkemq.fsf@gnu.org> <87egt3gr99.fsf@gnu.org> <837fyvdu8c.fsf@gnu.org> <87ioiezw00.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: fgallina@gnu.org (Fabián Ezequiel Gallina) > Cc: 18596@debbugs.gnu.org > Date: Sun, 16 Nov 2014 18:16:47 -0300 > > > Thanks. But > > > > M-: (run-python (executable-find "python") nil) RET > > > > still hangs for me on MS-Windows. What am I missing? > > > > I believe we agreed on the fix being that the defaults should not hang. Indeed. Trouble is, it still does. > The fact that your example hangs on Window is bad but it's not worth the > trouble of mangling the provided command and trying to add the "-i" > switch to it as it would break other cases. We can add -i as long as the caller didn't provide a command. I see nothing wrong with this. If you do, please explain why is it wrong. Which other use cases will it break? > >From the Python help: > > -i : inspect interactively after running script; forces a prompt even > if stdin does not appear to be a terminal; also PYTHONINSPECT=x > > So I tried a solution that was ought to leave everyone happy, which was > setting PYTHONINSPECT env variable before run-python, but that didn't > help on Windows either. If you have other ideas I'm eager to try them > out. I had another idea to begin with: add -i. I also tested it and found it to work in the use case I presented. Thanks.