"Greg Ewing" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Terry Reedy wrote: | | > One of the virtues, and as I recall, design purposes, of .next calls is to | > be fast. After the first call, execution jumps directly into the | > pre-existing stack frame. | | You're thinking of generators,
I noticed after sending | > It is then fairly | > standard to factor out the attribute lookup with with 'xnext = x.next' | | You could still do xnext = x.__next__ if you wanted. Of course. And one of my points is that the translater must make this translation, which seems not to be in the current proposal, to avoid breaking code. The other is that this idiom makes the use cases for a builtin rather rare. tjr _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com