[issue9164] 2.7 sysconfig should handle arch duplicates while building universal on OS X

Marc-Andre Lemburg report at bugs.python.org
Wed Jul 7 10:51:39 CEST 2010


Marc-Andre Lemburg <mal at 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 <report at bugs.python.org>
<http://bugs.python.org/issue9164>
_______________________________________


More information about the Python-bugs-list mailing list