On 3/7/07, Terry Reedy <[EMAIL PROTECTED]> wrote: > > "Collin Winter" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > | >From the checked-in version, > | > | """ > | Two additional transformations will be added to the 2to3 translation tool > [3]: > | > | * Method definitions named next will be renamed to __next__. > | * Explicit calls to the next method will be replaced with calls to > | the built-in next function. For example, x.next() will become next(x). > > As I mentioned before, the above does not seem to cover the case of > non-call attribute lookups, as when making instance bindings, that also > need the name changed. IE gnext = g.next needs to be changed to gnext = > g.__next__. Have you included such cases?
Not yet, but doing so is trivial. Collin Winter _______________________________________________ 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