<div class="gmail_quote">On 21 March 2011 18:32, Fernando Perez <span dir="ltr"><<a href="mailto:Fernando.Perez@berkeley.edu" target="_blank">Fernando.Perez@berkeley.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


<div>I thought I had made sure that for multiline blocks we always produced<br>
'exec' mode, but something must have slipped through the cracks...</div></blockquote></div><br>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.<br>


<br>However, even with a single line, you can do:<br><br>for a in range(5): a<br><br>Thomas<br>