aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2014-07-20 16:51:16 -0300
committerFabián Ezequiel Gallina2014-07-20 16:51:16 -0300
commit1651cf2ed5f7aa8935b8bb3dc1a7813479b99044 (patch)
treebfc3c6d7d26a22692f6a884cb9726a627ce3f35c /lisp/progmodes/python.el
parentf72d7fa132538ed66048797759a9d59f99c5b8a3 (diff)
downloademacs-1651cf2ed5f7aa8935b8bb3dc1a7813479b99044.tar.gz
emacs-1651cf2ed5f7aa8935b8bb3dc1a7813479b99044.zip
* lisp/progmodes/python.el: Add comment about pipe buffering and
solutions for missing/delayed output in inferior Python shells. Fixes: debbugs:17304
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el8
1 files changed, 8 insertions, 0 deletions
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 @@
94;; python-shell-interpreter-args 94;; python-shell-interpreter-args
95;; "-i C:\\Python27\\Scripts\\ipython-script.py") 95;; "-i C:\\Python27\\Scripts\\ipython-script.py")
96 96
97;; If you are experiencing missing or delayed output in your shells,
98;; that's likely caused by your Operating System's pipe buffering
99;; (e.g. this is known to happen running CPython 3.3.4 in Windows 7.
100;; See URL `http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17304'). To
101;; fix this, using CPython's "-u" commandline argument or setting the
102;; "PYTHONUNBUFFERED" environment variable should help: See URL
103;; `https://docs.python.org/3/using/cmdline.html#cmdoption-u'.
104
97;; The interaction relies upon having prompts for input (e.g. ">>> " 105;; The interaction relies upon having prompts for input (e.g. ">>> "
98;; and "... " in standard Python shell) and output (e.g. "Out[1]: " in 106;; and "... " in standard Python shell) and output (e.g. "Out[1]: " in
99;; IPython) detected properly. Failing that Emacs may hang but, in 107;; IPython) detected properly. Failing that Emacs may hang but, in