[IPython-dev] Multiple outputs per input line
Mon Mar 21 13:39:59 CDT 2011
On 21 March 2011 18:32, Fernando Perez <Fernando.Perez@berkeley.edu> wrote:
> I thought I had made sure that for multiline blocks we always produced
> 'exec' mode, but something must have slipped through the cracks...
A single block is compiled in single mode, regardless of how many lines it
has. If there are several blocks, the last one is compiled in single mode if
it is <= 2 lines long.
However, even with a single line, you can do:
for a in range(5): a
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev