Re: discarded iterator.next() at interactive global scope doesn't bump interator??

2005-09-04 Thread Peter Otten
Bengt Richter wrote: [it.next() appears to be a noop in the interactive interpreter] I guess it could be in the read-eval-print loop Indeed: for i in range(5): ... 42 ... 42 42 42 42 42 Whereas: for i in range(5): ... None Every line with an expression that doesn't evaluate to

Re: discarded iterator.next() at interactive global scope doesn't bump interator??

2005-09-04 Thread Bengt Richter
On Sun, 04 Sep 2005 10:10:33 +0200, Peter Otten [EMAIL PROTECTED] wrote: Bengt Richter wrote: [it.next() appears to be a noop in the interactive interpreter] I guess it could be in the read-eval-print loop Indeed: for i in range(5): ... 42 ... 42 42 42 42 42 Whereas: for i in