[issue40081] List sorting
朱聖黎
report at bugs.python.org
Thu Mar 26 22:52:16 EDT 2020
朱聖黎 <digglife at gmail.com> added the comment:
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
----------
nosy: +akarei
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40081>
_______________________________________
More information about the Python-bugs-list
mailing list