a question regarding conciseness

Michal Wallace sabren at manifestation.com
Thu Feb 21 13:47:11 EST 2002


On Thu, 21 Feb 2002, Christophe Delord wrote:

> The problem with sort is that it sorts the list as a side effect.

You can use copy.copy() or copy.deepcopy() first to
eliminate that side effect.

Cheers,

- Michal   http://www.sabren.net/   sabren at manifestation.com 
------------------------------------------------------------
Give your ideas the perfect home: http://www.cornerhost.com/
 cvs - weblogs - php - linux shell - perl/python/cgi - java
------------------------------------------------------------





More information about the Python-list mailing list