The Python Oracle

Why does "return list.sort()" return None, not the list?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Track title: CC H Dvoks String Quartet No 12 Ame

--

Chapters
00:00 Question
00:43 Accepted answer (Score 332)
00:59 Answer 2 (Score 219)
01:19 Answer 3 (Score 67)
02:33 Answer 4 (Score 31)
04:09 Thank you

--

Full question
https://stackoverflow.com/questions/7301...

Answer 2 links:
[Here is an email]: http://mail.python.org/pipermail/python-...

Answer 3 links:
[deep copy]: http://www.python-course.eu/deep_copy.ph...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #list #sorting #return

#avk47