a question regarding conciseness

Gerson Kurz gerson.kurz at t-online.de
Thu Feb 21 13:25:04 EST 2002

On Thu, 21 Feb 2002 19:37:30 +0100, Christophe Delord
<christophe.delord at free.fr> wrote:

>The problem with sort is that it sorts the list as a side effect.

Well, if that is the whole problem:

sort = lambda x:(lambda x=x[:]:(x.sort(),x)[1])()

But your lambdas are very nice, too...

More information about the Python-list mailing list