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
SportsPicks
3 hours agoCrick's Corner: Episode 75
37 watching -
1:06:30
LindellTV
1 hour agoMIKE LINDELL LIVE AT THE WHITE HOUSE
3.95K -
1:05:33
Russell Brand
4 hours agoTrump Goes NUCLEAR on China - accuses Xi of CONSPIRING against US with Putin & Kim - SF627
111K41 -
1:14:47
Sean Unpaved
3 hours agoTrey Wingo's Gridiron Grab
17.2K1 -
13:07
Silver Dragons
21 hours agoBullion Dealer Reacts to SILVER PRICE SURGING!
8.84K5 -
1:06:28
Timcast
3 hours agoTrump Admin Threatens GOP Who Vote To Release Epstein Files
146K108 -
2:13:09
Side Scrollers Podcast
4 hours agoDruski/White Face Controversy + Women “Experience Guilt” Gaming + More | Side Scrollers Live
31.9K3 -
1:39:53
The Mel K Show
4 hours agoMORNINGS WITH MEL K - Narratives Implode as Light Shines on Covid Deception 9-3-25
24.9K7 -
2:25:56
The Shannon Joy Show
3 hours agoExclusive With Congressman Tom Massie: "The Epstein Files Are NOT A Hoax. There Are Real Victims"
16.6K4 -
1:52:46
Steven Crowder
6 hours agoCongress Drops New Epstein Files and Trump Drops New Bombs on Venezuela Terrorists
344K195