stderr missing in IPython + Emacs + WinXP
Bug #237204 reported by
Jie Tang
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
IPython |
Confirmed
|
Low
|
Unassigned |
Bug Description
WinXP Pro SP2
Emacs 22.1
ipython.el
python-mode.el
stderr doesn't show up when using IPython with ipython.el inside Emacs.
e.g.:
In [2]: from sys import stderr,stdout
In [3]: stdout.
foo
In [4]: stderr.
In [5]:
It seems like sys.stderr has some buffering issues; if I flush the stream using stderr.flush() after writing to it the text displays.
In [6]: stderr.flush()
bar
In [7]:
As a workaround I added calls to
Term.cout.flush()
Term.cerr.flush()
right before IPython's "In[]" input prompt is displayed (around line 1675 in iplib.py)
To post a comment you must log in.
This workaround didn't fix this problem for me.
WinXP Pro SP2
Emacs 22.1.1
ipython.el 2927
python-mode.el 4.75
pyreadline 1.3 or trunk (post-1.5)