[Python-Dev] Python 3 optimizations continued...

Guido van Rossum guido at python.org
Tue Aug 30 20:27:56 CEST 2011


On Tue, Aug 30, 2011 at 11:23 AM, stefan brunthaler
<stefan at brunthaler.net> wrote:
>> Do I sense that the bytecode format is no longer platform-independent?
>> That will need a bit of discussion. I bet there are some things around
>> that depend on that.
>>
> Hm, I haven't really thought about that in detail and for longer, I
> ran it on PowerPC 970 and Intel Atom & i7 without problems (the latter
> ones are a non-issue) and think that it can be portable. I just stuff
> argument and opcode into one word for regular instruction decoding
> like a RISC CPU, and I realize there might be little/big endian
> issues, but they surely can be conditionally compiled...

Um, I'm sorry, but that reply sounds incredibly naive, like you're not
really sure what the on-disk format for .pyc files is or why it would
matter. You're not even answering the question, except indirectly --
it seems that you've never even thought about the possibility of
generating a .pyc file on one platform and copying it to a computer
using a different one.

-- 
--Guido van Rossum (python.org/~guido)


More information about the Python-Dev mailing list