sorting list of complex numbers
Paul Rubin
http
Wed Nov 19 21:39:27 EST 2008
Terry Reedy <tjreedy at udel.edu> writes:
> >> Do your tuple destructuring in the first statement in your body and
> >> nothing will break.
Why get rid of a useful feature that unclutters code?
> > Unless you were using a lambda, which is quite useful as argument to
> > "sort".
>
> So write a separate def statement.
> If you do not want to do that, don't run with 3.0.
You are advising avoiding downgrading from 2.5 to 3.0, which is maybe
the best plan for some users under the circumstances, but some of us
normally expect a new major release to be an upgrade rather than a
downgrade.
More information about the Python-list
mailing list