Re: shared lib from python code?

2009-02-24 Thread Terry Reedy
Gabriel Rossetti wrote: Ok, I see, thank you. I thought this was possible since I have used *.pyd files before and from what I had read they were dynamic library files. I guess they must be written in C/C++ then. Thank you for the explanation. Yes, that can be confusing. Unlike .py, .pyc, .

Re: shared lib from python code?

2009-02-24 Thread Gabriel Rossetti
Duncan Booth wrote: Gabriel Rossetti wrote: Ok, maybe I mis-stated my problem (or mis-understood your answers).. I don' t want to share code as in have multiple processes access a variable and have the same value, like it is done in threads, what I want is to not have n copies of the code

Re: shared lib from python code?

2009-02-24 Thread Gabriel Rossetti
andrew cooke wrote: Gabriel Rossetti wrote: Ok, maybe I mis-stated my problem (or mis-understood your answers).. I don' t want to share code as in have multiple processes access a variable and have the same value, like it is done in threads, what I want is to not have n copies of the code (cl

Re: shared lib from python code?

2009-02-23 Thread andrew cooke
Gabriel Rossetti wrote: > Ok, maybe I mis-stated my problem (or mis-understood your answers).. I > don' t want to share code as in have multiple processes access a > variable and have the same value, like it is done in threads, what I > want is to not have n copies of the code (classes, functions,

Re: shared lib from python code?

2009-02-23 Thread Diez B. Roggisch
Gabriel Rossetti schrieb: Gabriel Rossetti wrote: Hello everyone, I would like to know if it is possible to turn python code into a shared lib? I have several processes that use the same base code, and it seems like every process loads the "shared" code into memory. I would like it to be loa

Re: shared lib from python code?

2009-02-23 Thread Duncan Booth
Gabriel Rossetti wrote: > Ok, maybe I mis-stated my problem (or mis-understood your answers).. I > don' t want to share code as in have multiple processes access a > variable and have the same value, like it is done in threads, what I > want is to not have n copies of the code (classes, functi

Re: shared lib from python code?

2009-02-23 Thread Gabriel Rossetti
Gabriel Rossetti wrote: Hello everyone, I would like to know if it is possible to turn python code into a shared lib? I have several processes that use the same base code, and it seems like every process loads the "shared" code into memory. I would like it to be loaded once and shared, like a

Re: shared lib from python code?

2009-02-23 Thread Gabriel Genellina
En Mon, 23 Feb 2009 08:10:16 -0200, Gabriel Rossetti escribió: I would like to know if it is possible to turn python code into a shared lib? I have several processes that use the same base code, and it seems like every process loads the "shared" code into memory. I would like it to be lo

Re: shared lib from python code?

2009-02-23 Thread Paul Rubin
Gabriel Rossetti writes: > I would like to know if it is possible to turn python code into a > shared lib? I have several processes that use the same base code, and > it seems like every process loads the "shared" code into memory. I > would like it to be loaded once and shared, like a .so in linu

shared lib from python code?

2009-02-23 Thread Gabriel Rossetti
Hello everyone, I would like to know if it is possible to turn python code into a shared lib? I have several processes that use the same base code, and it seems like every process loads the "shared" code into memory. I would like it to be loaded once and shared, like a .so in linux or a .dll i