From 1651cf2ed5f7aa8935b8bb3dc1a7813479b99044 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabi=C3=A1n=20Ezequiel=20Gallina?= Date: Sun, 20 Jul 2014 16:51:16 -0300 Subject: [PATCH] * lisp/progmodes/python.el: Add comment about pipe buffering and solutions for missing/delayed output in inferior Python shells. Fixes: debbugs:17304 --- lisp/ChangeLog | 6 ++++++ lisp/progmodes/python.el | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9c41c6f7ade..2ee5ee808c1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2014-07-20 Fabián Ezequiel Gallina + + * progmodes/python.el: Add comment about pipe buffering and + solutions for missing/delayed output in inferior Python shells. + (Bug#17304) + 2014-07-20 Fabián Ezequiel Gallina * progmodes/python.el (python-mode): Don't set diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index f4ff03e2405..86970b8a0c7 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -94,6 +94,14 @@ ;; python-shell-interpreter-args ;; "-i C:\\Python27\\Scripts\\ipython-script.py") +;; 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=17304'). 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'. + ;; The interaction relies upon having prompts for input (e.g. ">>> " ;; and "... " in standard Python shell) and output (e.g. "Out[1]: " in ;; IPython) detected properly. Failing that Emacs may hang but, in -- 2.39.5