Hi, On Thu, Sep 1, 2011 at 9:58 AM, Antonio Cuni <anto.cuni at gmail.com> wrote: > it seems to work fine with pypy 1.6. Note that str() is called twice for > each line, so we get 1, 3, 5, 7..., but this happens only on cpython. ...but this happens only on PyPy, you mean. It works as expected on CPython 2.7. Is it a bug? :-) A bientôt, Armin.