3 ms·
If you reassign foo.bar in in code in module x, then later access foo.bar from module y, it will be the value assigned in X. In the general case, yes. Unfortun
by moe 17y ago
If you reassign foo.bar in in code in module x, then later access foo.bar from module y, it will be the value assigned in X.
In the general case, yes. Unfortunately, due to some quirks in the module loader, assigning bar right inside foo might not yield the expected result, though.
This is actually one of the python warts that annoys me the most.