Dropping support for Python 2.3 at some point...
Eric M. Hopper
hopper at omnifarious.org
Thu Jun 7 11:48:18 CDT 2007
On Thu, 2007-06-07 at 10:35 +0200, Christian Ebert wrote:
> * Gábor Farkas on Thursday, June 07, 2007 at 08:46:17 +0200:
> > 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:
> >
> > try:
> > set
> > except NameError:
> > from sets import Set as set
>
> or provide eg util.hgset() in util.py in a similar fashion:
>
> try:
> hgset = set
> except NameError:
> import sets
> hgset = sets.Set
That suggestion makes a lot of sense. I would want something similar
for frozenset as well if I could get it.
Thanks,
--
The best we can hope for concerning the people at large is that they
be properly armed. -- Alexander Hamilton
-- Eric Hopper (hopper at omnifarious.org http://www.omnifarious.org/~hopper) --
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 185 bytes
Desc: This is a digitally signed message part
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20070607/1f0f5211/attachment-0001.pgp
More information about the Mercurial-devel
mailing list