Question about compiled bytecode

Denis S. Otkidach ods at fep.ru
Wed Aug 21 18:04:19 CEST 2002


On Wed, 21 Aug 2002, Mr. Neutron wrote:

MN> Hello,
MN> I am working on a project that needs to be able to trasfer
MN> compiled
MN> bytecode between interpreters. I can not transfer bytecode
MN> directly over a socket as Python will barf on this. My

You shouldn't have any problem if python versions on both sides
are bytecode-compartible (the same first and second numbers of
version).

MN> temporary
MN> solution is to send the source code of the program and have
MN> the
MN> remote end execute it into the interpreter. When I do this
MN> everything
MN> works fine, and the functions and objects that the compiled
MN> code
MN> relies on works fine.
MN>
MN> Is there some way to transfer compiled code between
MN> computers
MN> without having to send sourcecode?

-- 
Denis S. Otkidach
http://www.python.ru/      [ru]
http://diveinto.python.ru/ [ru]





More information about the Python-list mailing list