[PATCH 7 of 8 v2] python3: handle range/xrange divergence
Matt Mackall
mpm at selenic.com
Mon Apr 4 13:02:31 EDT 2016
On Sun, 2016-04-03 at 11:33 -0700, Gregory Szorc wrote:
>
> > - __builtins__.setdefault("xrange", range)
> >
> >
> I'm not a fan of mucking about with stdlib modules.
Neither am I, but it seems better than all of the following:
- switching all xranges to ranges
- putting a definition of xrange at the top of every module
- util.xrange
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list