ipython / ipython/ipykernel

Order of stdout and stderr is messed up

Aberta
#280 7 comentários 2 reações 0 responsáveis Ver no GitHub
help wanted
Linguagem predominante
Python
Estrelas
734
Forks
412
Merge médio
1d 5h
PRs com merge (30d)
8

Descrição

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.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.