[pypy-issue] Issue #2837: interactive stdout buffer not flushed if no end-of-line and exception (pypy/pypy)

Armin Rigo issues-reply at bitbucket.org
Sat May 26 22:45:33 EDT 2018


New issue 2837: interactive stdout buffer not flushed if no end-of-line and exception
https://bitbucket.org/pypy/pypy/issues/2837/interactive-stdout-buffer-not-flushed-if

Armin Rigo:

Interactively:

```
#!python

>>>> print 5,; 0 / 0
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ZeroDivisionError: integer division by zero
>>>> # the 5 is buffered and doesn't show up yet
5
>>>> 
```

On CPython the 5 is shown before the exception, as expected.




More information about the pypy-issue mailing list