Re: want to spread my code over different files



On Mar 29, 1:29 am, "raul" <rahuldotpa...@xxxxxxxxx> wrote:
hi
i want to have a global array which is populated in one file say file1
and then accessed and printed in the other file say file2.how do i do
this.
can you please show me a small sample code for this?


Is it your idea that the different files are all used within one
process, and one interpreter? Or are you talking about different
programs?
If you are talking about building an array that is used across
processes, then some special techniques will be needed - some kind of
inter-process communication technique (IPC) such as shared memory, etc.

.



Relevant Pages