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.
-
4:09:14
The Bubba Army
1 day agoRaja Jackson Arrested! - Bubba the Love Sponge® Show | 9/19/25
8.74K1 -
2:04:42
The Culture War with Tim Pool
3 hours agoDemonic Possession, Exorcisms, And The Soul Of America | The Culture War with Tim Pool
140K124 -
20:00
Neil McCoy-Ward
1 hour ago🔥 It's Absolute CHAOS In Europe 🇪🇺 Today...
3.76K2 -
1:07:41
Steven Crowder
3 hours agoSPECIAL: A Behind-the-Scenes Peek at Some of Our Biggest Productions
185K92 -
59:40
The Rubin Report
3 hours agoListen to ‘The View’ Crowd Gasp as Whoopi Admits She Agrees w/ Conservatives on This
49.7K29 -
1:40:02
The Mel K Show
2 hours agoMORNINGS WITH MEL K Preserving the Home of the Brave 9-19-25
25.9K5 -
1:56:29
Film Threat
20 hours agoKIMMEL GONE! PLUS REVIEWS OF HIM + A BIG BOLD BEAUTIFUL JOURNEY + MORE | Film Threat Livecast
18.8K3 -
34:24
Tudor Dixon
6 hours agoDave Rubin on Charlie Kirk’s Legacy, Free Speech, & a Divided America | The Tudor Dixon Podcast
29.4K4 -
LIVE
LFA TV
15 hours agoBREAKING NEWS ON LFA TV! | FRIDAY 9/19/25
2,702 watching -
1:00:49
VINCE
5 hours agoTrump Is Finding The Missing Children | Episode 129 - 09/19/25
245K212