[Python-3000] 2to3 fixers (original) (raw)

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: * fixnext handles the it.next() -> next(it) transition for PEP 3114. * fixnonzero converts nonzero to bool methods, as mentioned in PEP 3100. * fixtupleparams 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