Variables in a loop, Newby question
Denis McMahon
denismfmcmahon at gmail.com
Tue Dec 24 21:54:45 EST 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
mailing list