Marc-Andre Lemburg <m...@egenix.com> added the comment:

sorted() and set() were introduced in Python 2.4.

If your code will not run in Python 2.3 anyway, then using those should be fine.

The only other place currently using set() is the MSVC9 compiler code. sorted() 
is not used at all in distutils. list.sort() should do the trick as well in 
your code - I'm not sure why you need a tuple for the args.

Note that Python 2.3 did have the set type, however, it was only available 
through the "sets" module as "Set". Using a conditional import "from sets 
import Set as set" for Python 2.3 would get you the set() builtin in Python 2.3 
as well.

----------
nosy: +lemburg

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9164>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to