Hi Bengt,

On Mon, Mar 4, 2013 at 4:32 PM, Bengt Richter <b...@oz.net> wrote:
> </rant_warning>

That's an issue of the Python language, which we won't address here.
Note also that Python 3 goes a bit in the direction you describe.

> BTW, what happens if you import in the opposite order?
> Can the 32-bit interpreter process the 64-bit pyc?

Yes: in this case the 64-bit Python (either CPython or PyPy) will
store the 64-bit "int", and the 32-bit Python will go ``oups, a 64-bit
int, I'm going to load it as a "long"''.

Actually the only thing we could change (assuming we want to fix it)
would be, on 32-bit, to also generate such a 64-bit int for code
objects that contain 64-bit Python constants without the "L" suffix.


A bientôt,

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

Reply via email to