Variables in a loop, Newby question
denismfmcmahon at gmail.com
Wed Dec 25 03:54:45 CET 2013
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.
The "global" keyword doesn't do that.
"global" is used inside a function definition in python to tell the
function that it is working with a global (to the program unit) variable.
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.
Denis McMahon, denismfmcmahon at gmail.com
More information about the Python-list