Passing information between modules
Dan Kolis
dankolis at gmail.com
Sun Nov 20 10:51:54 EST 2022
It's certainly not an "incredibly bad idea", it is a mildly bad idea however. Why be stuck with maybe's and just text strings ?
Functions as "first class operators" and object oriented languages are a natural pair with a bit of heavy thinking.
The problem is... there is nobody giving you a 3 line solution without thinking. Its a 7 line solution requiring understanding. One you do it right, then its a 2 line solution !
Once you construct the bridges; then, in any module you can consider global sharables like so:
First vague use of functionality
gi.setAsideArea.NewIdea = 'ok'
Next usages anywhere !
gi.setAsideArea.NewIdea = "StateMachine Argon"
There is no hangover of vague ideas bothering future executions of the code either. This is not some scary file buried in a directory system which needs calling and might be stale, using bad ideas, etc.
How much easier can a solution be ?
Regards,
Daniel B. Kolis
More information about the Python-list
mailing list