Python 3 syntax error question

Chris Angelico rosuav at gmail.com
Sun Jun 26 11:31:49 EDT 2011


On Mon, Jun 27, 2011 at 1:28 AM, rzed <rzantow at gmail.com> wrote:
> As to 2to3, I have to say that:
>
> -def a(b, (c,d)):
> +def a(b, xxx_todo_changeme):
> +    (c,d) = xxx_todo_changeme
>
> ... is not terribly revealing if one is unaware of what about it
> needs changing. I know, I know: RTFM....

Sure, but you don't _have_ to look at the diff. Just run it through
2to3 and see how it runs. Never know, it might work direct out of the
box!

ChrisA



More information about the Python-list mailing list