Collections of non-arbitrary objects ?
Peter Otten
__peter__ at web.de
Thu Jun 28 12:18:05 EDT 2007
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
More information about the Python-list
mailing list