[pypy-dev] help(1) OverflowError
holger krekel
hpk at trillke.net
Sun Apr 3 13:03:54 CEST 2005
On Fri, Apr 01, 2005 at 10:48 +0100, Armin Rigo wrote:
> On Fri, Apr 01, 2005 at 03:56:34PM +0900, Sanghyeon Seo wrote:
> > File "/home/tinuviel/pypy/dist/lib-python-2.3.4/sre_compile.py",
> > line 488 in compile
> > groupindex, indexgroup
> > OverflowError: long int too large to convert to int
>
> Actually, if you have a very fast machine, debugging with pdb in py.py works
> fine. It's related to Michael Chermside's module/_sre_pypy/ check-in. The
> bug is that _sre.compile() should accept as 3rd argument a list of unsigned
> integers, but in the current implementation expects a list of signed integers
> -- hence the OverflowError.
>
> Help! What is the proper way to unwrap an unsigned integer?
Hum, nobody seems to be able to answer this at the moment.
It probably relates to the fact that our usage of integers at
interpreter-level in general is fuzzy. Or do we have a concise
explicit definition for their usage?
Anyway, apparently Samuele and me re-patched the trunk to not use
Michael Chermside's _sre_pypy implementation for the moment because
of this issue. You can get back the previous behaviour (with the
help(1) problem) by uncommenting in baseobjspace.py the
line starting with ... self.setbuiltinmodule("_sre"
at least on amd64 (which fails differently from a 32bit
machine, sigh).
holger
More information about the Pypy-dev
mailing list