Hi Anto,

On Mon, Mar 4, 2013 at 10:20 AM, Antonio Cuni <anto.c...@gmail.com> wrote:
> (This happens because 2147483648 is stored as a long inside the marshalled
> pyc file).

Riiiight, absolutely.  How about deciding that this is a bug and
fixing it in PyPy (even if it's the CPython behavior)?  It can even be
done while keeping the same .pyc file, if we make a simple extension
to the .pyc file format for "integers without an L suffix that fit in
64-bit".  (The .pyc files are anyway different from CPython's.
Moreover we need to propagate this informtion from the compiler, which
means it would only be used when marshalling code objects, never
directly integers --- important for compatibility with CPython, when
"marshal" is used directly.)


A bientôt,

Armin.
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to