[Python-3000] PEP 3113 transition plan
Collin Winter
collinw at gmail.com
Wed Mar 7 16:40:28 CET 2007
On 3/7/07, Terry Reedy <tjreedy at udel.edu> wrote:
>
> "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?
Not yet, but doing so is trivial.
Collin Winter
More information about the Python-3000
mailing list