Sujet : Re: How/where to store calibration values - written by program A, read by program B
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.lang.pythonDate : 28. Dec 2023, 14:17:06
Autres entêtes
Organisation : Stefan Ram
Message-ID : <modules-20231228141353@ram.dialup.fu-berlin.de>
References : 1 2 3 4
ram@zedat.fu-berlin.de (Stefan Ram) writes:
But it does not work here
under CPython.
Sorry! It was meant to be shared between
different modules in the /same process/.
I instead tried to use it between different
modules in /different processes/!
a.py
import config
config.value = 22
import b
b.py
import config
print( config.value )
output
22