Talk Python To Me cover image

#12: Deep Dive into Modules and Packages

Talk Python To Me

00:00

The Wild Thing About Python Class Attributes

You can kind of hack this. You could do some reloading hacks where, you know, on a module reload, you go through all of the existing instances and then flip their class attribute to the newly loaded class. Yeah, so maybe it's possible if somebody really wanted to change the standard library to support this. I'm just not sure it's even tractable problem to solve in the big picture though.I suspect it runs, but things like static class level data might be kind of broke. Oh, yeah. Static stuff breaks. Another thing that breaks horribly is the super call. If you ever use that, one of the arguments to super is the name is the class that you

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