News for hackers. Stuff that matters.
Re:Flask 1.0 Released by BerislavLopac on Friday April 27, 2018 @02:46AM (#16938865)
OK, fair point, I used a wrong term here. So instead of global variables we have dynamic modules that represent a stateful context object which is different depending on where they are imported and when. Very un-Pythonic, and honestly I'd prefer global variables here. :-/
Re:Flask 1.0 Released by eurleif on Friday April 27, 2018 @03:06AM (#16938953)
>different depending on where they are imported and when

Er, no. Their value depends on where in the callstack you read it, not on where/how they're imported. They're like global variables but with thread locality, and with a stack of values.