473,757 Members | 8,085 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

pyc file usage in a multi OS environment ( newbe question)

Hi folks,
i have an failover environment for a python application which can
fail-over to a AIX, Sun or Linux Box.
At the moment the python interpreter ( 2.4.2 on all platforms ) and the
application are installed localy but all data and configuration are on
a shared location ( NFS/GPFS)
So far no problem.
But the user are asking to get so called eggs installed which looks
like some python source code files and some metadata.
From the administration point of view it would be a mess to install and

maintain these - eggs - on all platforms.

So the question arise:
Can i install python code in a shared location so this code can be
loaded either from a AIX, Linux or a SunOS box ?

Since the .py file are plain python scripts i assume that these are
not causing any trouble but what about the .pyc file ? ( Which i could
not figure out what they are acutelly for - My knowledge about python
is more or less a drop of water within the python ocean )

tia
Hajo

Mar 10 '06 #1
2 1399
"HajoEhlers " wrote:
Since the .py file are plain python scripts i assume that these are
not causing any trouble but what about the .pyc file ? ( Which i could
not figure out what they are acutelly for - My knowledge about python
is more or less a drop of water within the python ocean )


PYC files contain cached compiled Python byte code. there's also PYO
files, which are optimized PYC files (created by running Python with the
-O flag).

PYC and PYO files are compatible across platforms, but not across major
Python releases (e.g. 2.4.X cannot use 2.3.X byte codes).

note that PYC files are created automatically when PY files are imported
(if there's no newer PYC file already available), and the creation process
is not NFS-safe in itself, so you may end up with assorted race problems
if you're not careful...

</F>

Mar 10 '06 #2
Thanks for clearifing the issue.

Hajo

Mar 11 '06 #3

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

Similar topics

4
1848
by: WindAndWaves | last post by:
Hi Gurus I hope I am going to make sense with this question: I have an html page that I have turned into a php page with a bit of php code above the html (connect to database, massage data a little, mix with html, etc...). Now, I would like to use a function in my php code, as otherwise I have to type the same thing over and over again. With a function, I mean something along of the lines of: function x($string) { return...
2
3615
by: Arben Qarkaxhija | last post by:
Hello all, I'm new to AS400 and we have a problem here with a sql-procedure, that is running OK over the Client Access Navigator, but over the 5250 emulator hanging with an error "pointer for the given position not set" (anything like that I think, I have the error in german and here I mean, I have just translated it, but not sure, if the error is shown in english in that way!). Here a peace of code:
9
6690
by: Yaro | last post by:
Hello DB2/NT 8.1.3 Sorry for stupid questions. I am newbe in DB2. 1. How can I read *.sql script (with table and function definitions) into a database? Tool, command... 2. In Project Center I created funcion CREATE FUNCTION DB2ADMIN.xxx( )
1
2023
by: Jim | last post by:
I have created a windows form that contains several tab pages which contain a panels. On a tab page I am trying to dynamically create a series of buttons in that pages panel. I am failing because I can not find the proper way to point to the specific tab page and its panel when creating the buttons. I also need to dynamically change the background color property of each button as it is clicked.
17
2720
by: Eric_Dexter | last post by:
def simplecsdtoorc(filename): file = open(filename,"r") alllines = file.read_until("</CsInstruments>") pattern1 = re.compile("</") orcfilename = filename + "orc" for line in alllines: if not pattern1 print >>orcfilename, line I am pretty sure my code isn't close to what I want. I need to be able
0
1025
by: zitizonx | last post by:
Hello all, I am looking a way to read the .MBOX file in Windows environment using .Net and write the file content in to HTML files. But I cant find any library files or documentation around this. Anyone have any experience around this? Any help? Thanks in heaps ! Rav
0
2088
by: Learning.Net | last post by:
I have a window application that uses ActiveX browser component for testing web site automatically using mshtml. Though application is running fine but there is abnormally high page file usage. The Maximum PF Usage often rising as high as 2 GB. How to reduce this page file usage & reasons behind this high page file usage? Anyone can help me out? Thank you very much!
1
2043
by: santhescript01 | last post by:
I have a window application that uses ActiveX browser component for testing web site automatically using mshtml. Though application is running fine but there is abnormally high page file usage. The Maximum PF Usage often rising as high as 2 GB. How to reduce this page file usage & reasons behind this high page file usage? Anyone can help me out? Thank you very much!
1
4854
by: ywang123 | last post by:
I have a test.csv file with multi line in one field like following: Name, message "Gus", "See you" "Amy", "take to you later, Thank you. call me" "Mark", "Try it again
0
9489
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9298
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10072
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9737
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7286
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6562
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3399
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2698
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.