46.3. Sharing Data#
The global dictionarySD
is available to store private data between repeated calls to the same function. The global dictionaryGD
is public data, that is available to all Python functions within a session; use with care.
Each function gets its own execution environment in the Python interpreter, so that global data and function arguments frommyfunc
are not available tomyfunc2
. The exception is the data in theGD
dictionary, as mentioned above.