literally this, as well as calling the function with every print instead of calling the variable they're after directly unless i'm missing something entirely
The point of my example is this shouldn't be possible. Local static variables shouldnt be publically available globally. (Local static variables shouldn't exist ever fwiw).
Python is one of those languages where you'll be fine as long as you never use 95% of its features.
I would simply not use a global :virgil-sad:
literally this, as well as calling the function with every print instead of calling the variable they're after directly unless i'm missing something entirely
Being able to externally mutate the internals of a function is bad and shouldn't be allowed in a language.
The point of my example is this shouldn't be possible. Local static variables shouldnt be publically available globally. (Local static variables shouldn't exist ever fwiw).
Python is one of those languages where you'll be fine as long as you never use 95% of its features.