[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-24 r117392: * lisp/progmodes/python.el: Add comment
From: |
Fabián Ezequiel Gallina |
Subject: |
[Emacs-diffs] emacs-24 r117392: * lisp/progmodes/python.el: Add comment about pipe buffering and |
Date: |
Sun, 20 Jul 2014 19:51:43 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 117392
revision-id: address@hidden
parent: address@hidden
fixes bug: http://debbugs.gnu.org/17304
committer: Fabián Ezequiel Gallina <address@hidden>
branch nick: emacs-24
timestamp: Sun 2014-07-20 16:51:16 -0300
message:
* lisp/progmodes/python.el: Add comment about pipe buffering and
solutions for missing/delayed output in inferior Python shells.
modified:
lisp/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1432
lisp/progmodes/python.el python.el-20091113204419-o5vbwnq5f7feedwu-3008
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2014-07-20 18:28:50 +0000
+++ b/lisp/ChangeLog 2014-07-20 19:51:16 +0000
@@ -1,5 +1,11 @@
2014-07-20 Fabián Ezequiel Gallina <address@hidden>
+ * 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 <address@hidden>
+
* progmodes/python.el (python-mode): Don't set
mode-require-final-newline. (Bug#17990)
=== modified file 'lisp/progmodes/python.el'
--- a/lisp/progmodes/python.el 2014-07-20 18:28:50 +0000
+++ b/lisp/progmodes/python.el 2014-07-20 19:51:16 +0000
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-24 r117392: * lisp/progmodes/python.el: Add comment about pipe buffering and,
Fabián Ezequiel Gallina <=