Author akarei
Recipients Sivasundar Nagarajan, akarei, terry.reedy
Date 2020-03-27.02:52:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1585277536.64.0.375186261186.issue40081@roundup.psfhosted.org>
In-reply-to
Content
I think it's an expected behavior.

`a.sort()` sorts the list itself in place, so it returns None.

If you want a sorted list returned, you need to use `sorted` function.

https://docs.python.org/3/library/functions.html#sorted
History
Date User Action Args
2020-03-27 02:52:16akareisetrecipients: + akarei, terry.reedy, Sivasundar Nagarajan
2020-03-27 02:52:16akareisetmessageid: <1585277536.64.0.375186261186.issue40081@roundup.psfhosted.org>
2020-03-27 02:52:16akareilinkissue40081 messages
2020-03-27 02:52:16akareicreate