The idea is that if Flask didn't do what it does with the request objects and other variables that are request specific, you will have to receive a bunch of arguments. The way flask handles that is that it makes those available as context variables. They're present in every request. You don't get the mass argument. You see them as global variables. And I said they're magical because even though they look like global variables or not, they're really thread-specific global variables. That's a little bit magic that a lot of people get confused about.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode