[Python-3000] 2to3 fixers

Georg Brandl g.brandl at gmx.net
Tue Mar 20 08:59:28 CET 2007


Collin Winter schrieb:
> 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.
> 
> I have a fixer for uppercase literal modifiers (UR"..." -> ur"...")
> penciled in, but I'm still waiting on a concrete PEP before I start
> work. Anyone still waiting for a fixer for his/her PEP (except for
> 3115, which is already on my list) should let me know.

I already have a fixer for octal/hexadecimal literals here, together
with my patch.

Georg



More information about the Python-3000 mailing list