Dropping support for Python 2.3 at some point...
Gábor Farkas
gabor at nekomancer.net
Thu Jun 7 06:46:17 UTC 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.
>
hi,
no, sets are also in Python 2.3 as a module,
so you can use something like this:
try:
set
except NameError:
from sets import Set as set
and it will work in both Python 2.3 and Python 2.4.
gabor
More information about the Mercurial-devel
mailing list