ipython / ipython/ipykernel

Order of stdout and stderr is messed up

オープン
#280 コメント 7 件 リアクション 2 件 担当者 0 名 GitHub で見る
help wanted
主要言語
Python
スター
734
フォーク
412
平均マージ
1日 5時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。