Python 3 sort() problem

Joonas Liik liik.joonas at gmail.com
Mon Aug 17 10:14:50 EDT 2015


>
> I know that sort() returns None, but I guess that it would be returned x
> that was sorted. Why so?

if it returned a sorted list it might lead some people to believe it
did not modify the oridinal list which would lead to a ton of
confusion for new users.



More information about the Python-list mailing list