ipython/ipython — pull request #1662 by bfroehle (2012-04-25 23:08:21+00:00)
Title: Delay flushing softspace until after cell finishes

Delay flushing softspace (i.e., printing a new line if `sys.stdout.softspace` is True) until after cell finishes executing.

This changes the behavior from
```
In [1]: print 1,; print 2
1
2
```
to the more expected
```
In [1]: print 1,; print 2
1 2
```

Includes a test. Python 3 remove the notion of softspace, so the test limits itself to Python 2 only.

Closes #1512.