[IPython-dev] Multiple outputs per input line

Thomas Kluyver takowl@gmail....
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

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20110321/8892a5c4/attachment.html 


More information about the IPython-dev mailing list