[Python-3000] PEP 3113 transition plan
Terry Reedy
tjreedy at udel.edu
Wed Mar 7 09:27:17 CET 2007
"Collin Winter" <collinw at gmail.com> wrote in message
news:43aa6ff70703061643j4c722138qee88c7e2b4800b4b at mail.gmail.com...
| >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?
tjr
More information about the Python-3000
mailing list