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.
-
13:51
True Crime | Unsolved Cases | Mysterious Stories
5 days ago $9.46 earned7 Real Life Heroes Caught on Camera (Remastered Audio)
13.8K2 -
LIVE
Total Horse Channel
12 hours ago2025 IRCHA Derby & Horse Show - November 1st
76 watching -
4:19
PistonPop-TV
6 days ago $2.34 earnedThe 4E-FTE: Toyota’s Smallest Turbo Monster
11.2K -
43:07
WanderingWithWine
6 days ago $1.29 earned5 Dreamy Italian Houses You Can Own Now! Homes for Sale in Italy
9.84K2 -
LIVE
Spartan
20 hours agoFirst playthrough of First Berserker Khazan
257 watching -
28:01
Living Your Wellness Life
2 days agoTrain Your Hormones
12.5K -
43:28
The Heidi St. John Podcast
1 day agoFan Mail Friday: Faith Over Fear and Finding Strength in Every Season
6.79K -
1:05:30
SGT Report
1 day agoTHE HORRIBLE TRUTH ABOUT EVERYTHING -- Harley Schlanger
48.7K90 -
11:04
Blackstone Griddles
17 hours agoCountry Fried Steaks on the Blackstone Griddle
92.7K14 -
49:47
Brad Owen Poker
1 day agoI Get My First BIIGGG Win! $25,000+ Buy-in! HORSE Championship! Don’t Miss! Poker Vlog Ep 324
17K1