ipython / ipython/ipykernel

Order of stdout and stderr is messed up

未關閉
#280 7 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視
help wanted
主要語言
Python
星號
734
分支
412
平均合併
1 天 5 小時
30 天內合併 PR
8

描述

Code:

```python
import sys

print('stderr1', file=sys.stderr)
print('stdout1')
print('stderr2', file=sys.stderr)
print('stdout2')
```

Output:

```
stdout1
stdout2
stderr1
stderr2
```

Expected output:

```
stderr1
stdout1
stderr2
stdout2
```

This happens with:

python3 -m notebook
python3 -m jupyter_console

The error does not occur with:

python3 -m IPython

... where the order is as expected.

I've already reported this quite some time ago in https://github.com/jupyter/help/issues/111, where there was some chit-chat and then I was sent here.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。