Variables in a loop, Newby question

Denis McMahon denismfmcmahon at
Wed Dec 25 16:27:55 CET 2013

On Wed, 25 Dec 2013 16:42:47 +1100, Cameron Simpson wrote:

> On 25Dec2013 02:54, Denis McMahon <denismfmcmahon at> wrote:
>> On Tue, 24 Dec 2013 10:27:13 -0800, vanommen.robert wrote:
>> > In this script i want to read the temperatures and make them
>> > available to other scripts. [...]
>> If you want this process to provide data to other processes, you might
>> want to look at using a socket so they can request it as needed.
> Or just write it to a file for another process to open and read...

That can cause io sync errors, eg if another process has the file opened 
for read when you try to write, or you are writing when they try to read.

For inter process communication, sockets are generally better than files.

Denis McMahon, denismfmcmahon at

More information about the Python-list mailing list