list.sort()

Martin von Loewis loewis at informatik.hu-berlin.de
Mon Jun 18 07:04:28 EDT 2001


Rikard Bosnjakovic <bos at hack.org> writes:

> I'm aware that changing is not a good idea at all. How about adding two
> extra methods for sort/reverse, that actually returns the list instead
> of changes it inplace?
> 
> I think changing the list in place is very unPythonic.

If you think such methods should be added, please write a PEP.

Regards,
Martin



More information about the Python-list mailing list