Why list.sort() don't return the list reference instead of None?

ankyhe at gmail.com ankyhe at gmail.com
Mon May 8 02:39:18 EDT 2006


L = [4,3,2,1]
L=L.sort()
L will refer to None, why L.sort() don't return the L?
I want to ask why the designer of Python do so?




More information about the Python-list mailing list