Premium Only Content
Fun with Python's Newer Tools -fun with python's newer tools
Fun with Python's Newer Tools
Spend ten minutes each learning to work with Counters, named tuples, new string formatting, and the LRU cache. Learn the basic API, see how it works under the hood, enjoy a simple example, and then have fun pushing it to the limit in interesting ways.
Look at how a Counter is implemented. See a simple word count example. Use a counter for unittests. Implement a sparse matrix.
Show how named tuples are created, combined, subclassed, and extended. See how to implement an Enum class and how to create default values.
Learn the basics of the new string formatting syntax. See how to use it for templating.
Show everyday uses for an LRU cache, look at the underlying implementation, and see how to use it to trivially solve a dynamic programming problem.
-
LIVE
BEK TV
23 hours agoTrent Loos in the Morning - 12/05/2025
272 watching -
LIVE
The Bubba Army
22 hours agoWill Michael Jordan TAKE DOWN NASCAR - Bubba the Love Sponge® Show | 12/05/25
1,475 watching -
35:55
ZeeeMedia
14 hours agoPfizer mRNA in Over 88% of Human Placentas, Sperm & Blood | Daily Pulse Ep 156
10.1K100 -
LIVE
Pickleball Now
4 hours agoLive: IPBL 2025 Day 5 | Final Day of League Stage Set for Explosive Showdowns
228 watching -
9:03
MattMorseTV
17 hours ago $19.08 earnedIlhan Omar just got BAD NEWS.
39.2K92 -
2:02:41
Side Scrollers Podcast
21 hours agoMetroid Prime 4 ROASTED + Roblox BANNED for LGBT Propaganda + The “R-Word” + More | Side Scrollers
142K14 -
16:38
Nikko Ortiz
16 hours agoVeteran Tactically Acquires Everything…
27.3K1 -
20:19
MetatronHistory
2 days agoThe Mystery of Catacombs of Paris REVEALED
18.5K2 -
21:57
GritsGG
20 hours agoBO7 Warzone Patch Notes! My Thoughts! (Most Wins in 13,000+)
23.3K -
2:28:08
PandaSub2000
13 hours agoMyst (Part 1) | MIDNIGHT ADVENTURE CLUB (Edited Replay)
17.3K