Talk Python To Me cover image

#369: Getting Lazy with Python Imports and PEP 690

Talk Python To Me

00:00

Python and Imports

Imports and python are like syntax sugar for a function called where the body of the function is the mada lovel code of some madul. In plus plus it says, let's just execute this file top to bottom. And usually execution means tefind a function to find a function, divine a local variable to find a class. But it could mean run some random thing, search the file system all sorcsof stuff. If dunder name equal dunder main, right? This is a big confusion that people run into. The why is this weird thing in python? Why do they recommend it? Right? I'm not saying it should or shidn i just want

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app