Dropping support for Python 2.3 at some point...

Gábor Farkas gabor at nekomancer.net
Thu Jun 7 01:46:17 CDT 2007

Eric Hopper wrote:
> For example, there are many 
> places in the code that would benefit from using sets, and using sets 
> would likely decrease memory consumption and possibly increase 
> performance in later versions of Python.  But sets are a Python 2.4 feature.


no, sets are also in Python 2.3 as a module,
so you can use something like this:

except NameError:
	from sets import Set as set

and it will work in both Python 2.3 and Python 2.4.


More information about the Mercurial-devel mailing list