walterbyrd wrote:

> I can do this:

> x = tuple(sorted(list((3,2,1))))

The list() conversion is superfluous:

>>> tuple(sorted((3,2,1)))
(1, 2, 3)

Peter

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to