Talk Python To Me cover image

#24: Fluent Python

Talk Python To Me

00:00

DocTest: How to Check Code and Console Listings

The idea of DocTest is to make sure that whatever codes, snippets appear in documentation, particularly listings of console sessions, demonstrate stuff. So this was the starting point for DocTest. And then it's really good to do TDD, because you write a couple of stanzas of DocTest and then you implement the code that makes it pass. Yeah. You don't have to store all the keys, copies of the keys for every instance, right? Like you would with regular classes or objects.Yeah. Exactly. Or if you're in a debugger like PyCharm, you could probably hover over it and actually see it pop up in the watchman. yeah. Of course

Play episode from 20:45
Transcript

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