From: Fabián Ezequiel Gallina Date: Sun, 20 Jul 2014 19:51:16 +0000 (-0300) Subject: * lisp/progmodes/python.el: Add comment about pipe buffering and X-Git-Tag: emacs-24.3.93~53 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1651cf2ed5f7aa8935b8bb3dc1a7813479b99044;p=emacs.git * lisp/progmodes/python.el: Add comment about pipe buffering and solutions for missing/delayed output in inferior Python shells. Fixes: debbugs:17304 --- 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