473,441 Members | 1,336 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,441 software developers and data experts.

pyc / pyo architecture independent?

This question was brought up by packagers trying to set
policy for including Python modules in Debian Gnu/Linux:

Are the .pyc / .pyo files safely architecture independent?
(I.e. are they now, and are they likely or even guaranteed
to remain so?).

I know the bytecode can change between interpreter
versions and other interpreters like Jython, Stackless, and
PyPy (does that exist yet?) may not even choose to
make them. But given that the same interpreter is made
available, will they work on, say, an ARM processor,
a 68K, and a i386 sharing them on the same network?

Thanks for any comments,
Terry
--
Terry Hancock
Anansi Spaceworks http://www.AnansiSpaceworks.com/

Jul 18 '05 #1
4 4114

Terry> I know the bytecode can change between interpreter versions and
Terry> other interpreters like Jython, Stackless, and PyPy (does that
Terry> exist yet?) may not even choose to make them. But given that the
Terry> same interpreter is made available, will they work on, say, an
Terry> ARM processor, a 68K, and a i386 sharing them on the same
Terry> network?

Yes.

Skip

Jul 18 '05 #2
Terry Hancock <ha*****@anansispaceworks.com> writes:
This question was brought up by packagers trying to set
policy for including Python modules in Debian Gnu/Linux:

Are the .pyc / .pyo files safely architecture independent?
(I.e. are they now, and are they likely or even guaranteed
to remain so?).


Yes. .pycs are marshalled code objects (mostly) so the notes in

http://www.python.org/doc/current/li...e-marshal.html

apply.

Cheers,
mwh

--
CLiki pages can be edited by anybody at any time. Imagine the most
fearsomely comprehensive legal disclaimer you have ever seen, and
double it -- http://ww.telent.net/cliki/index
Jul 18 '05 #3
In article <Le********************@august.net>,
Terry Hancock <ha*****@anansispaceworks.com> wrote:

Are the .pyc / .pyo files safely architecture independent? (I.e. are
they now, and are they likely or even guaranteed to remain so?).
Yes. I don't know about future guarantees, but you may be assured that
it would be a Big Change if that were no longer true.
I know the bytecode can change between interpreter versions and other
interpreters like Jython, Stackless, and PyPy (does that exist yet?)
may not even choose to make them. But given that the same interpreter
is made available, will they work on, say, an ARM processor, a 68K, and
a i386 sharing them on the same network?


Yes.
--
Aahz (aa**@pythoncraft.com) <*> http://www.pythoncraft.com/

Weinberg's Second Law: If builders built buildings the way programmers wrote
programs, then the first woodpecker that came along would destroy civilization.
Jul 18 '05 #4
Thank you all for the (very quick!) replies.
--
Terry Hancock
Anansi Spaceworks http://www.AnansiSpaceworks.com/

Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: reachcv | last post by:
Hi, How can the processor architecture/capabilities be determined using a c program? I wanted to know how an OS installer/loader determines this while installing the OS on a fresh system. ...
0
by: Mahir Karabacak | last post by:
Hi All, Is there anybody who has development based knowledge about Microsoft Remote Desktop Protocol (RDP) or Citrix Independent Computing Architecture (ICA). I need to know, do servers send...
41
by: laimis | last post by:
Hey guys, I just recently got introduced to data mappers (DTO mapper). So now I have a SqlHelper being used by DTOMapper and then business layer is using DTOMapper when it needs to persist...
1
by: Johann Blake | last post by:
I am looking for a good solution on how to implement data access in an application so that there is a clean separation between the data access layer, the business layer and the GUI layer. I am...
6
by: V. Jenks | last post by:
I apologize if this is the wrong forum for this, I could not locate one that was exactly appropriate for this topic. Over the last couple of years I've been doing a lot of reading on design...
2
by: Silent Ocean | last post by:
Hi 1. I am in process of designing N-Tier Application using ASP.NET. Can anyone guide me the right material or microsoft guidelines document which I can used in designing the N-Tier application....
6
by: carsonbj | last post by:
I have an issue where the below operation works on a little-endian architecture but not on a big-endian architecture. I was under the impression that pointer arithmetic is architecture independant...
7
by: Samuel | last post by:
Hi, I am looking for some recommendations for client/server technologies and for the communication involved. I am currently planning to port a Perl application that has grown out of...
1
by: abhijitbkulkarni | last post by:
Hello, I am designing a .NET database application that uses 3 tier architecture. Starting initially, this application will be desktop application but I will convert it into a website later but...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.