[Python-3000] 2to3 fixers

Brett Cannon brett at python.org
Tue Mar 20 22:33:21 CET 2007


On 3/19/07, Collin Winter <collinw at gmail.com> wrote:
> Hi all,
>
> I've added two new fixers to 2to3 this weekend, plus significant new
> functionality for a third:
>
> * fix_next handles the it.next() -> next(it) transition for PEP 3114.
> * fix_nonzero converts __nonzero__ to __bool__ methods, as mentioned
> in PEP 3100.
> * fix_tuple_params now fixes up tuple parameters in lambdas, per PEP 3113.
>

As PEP 3113 is my PEP, here is my thanks to Collin for fleshing this
fixer out!  But thanks in general for helping with the transition
toolchain.  I will go update my PEPs as requested.

-Brett


More information about the Python-3000 mailing list