python - How does Flask keep the request global threadsafe -


in flask every function has access request global. how designers of flask stop global being overwritten in middle of 1 request when 1 starts?

it's threadlocal, not true global. since each thread can dealing 1 request @ time, there's no danger of interference.

in fact there's full description of in flask docs here.

(still doesn't make design, of course.)


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -