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
MYLUNCHBREAK CHANNEL PAGE
1 hour agoWho Built the MASSIVE Cathedrals?
346 watching -
LIVE
The Big Migâ„¢
2 hours agoAntifa Terrorism Follow The Money
5,210 watching -
LIVE
Badlands Media
4 hours agoBadlands Daily: October 15, 2025
3,655 watching -
1:02:37
The Mike Schwartz Show
19 hours agoTHE MIKE SCHWARTZ SHOW with JACK CIATTARELLI 10-15-2025
2.08K3 -
40:19
The Kevin Trudeau Show Limitless
1 hour agoFrom Prison to Power: Kevin Trudeau on Manifesting Anything
2.86K3 -
LIVE
Matt Kohrs
12 hours agoStock Market Open: BTFD 🚀🚀🚀 || Live Trading Futures & Options
448 watching -
LIVE
Wendy Bell Radio
6 hours agoThe Way We Were
7,200 watching -
1:00:54
Chad Prather
17 hours agoHow True Greatness Kneels Down
52.6K22 -
1:05:42
Crypto Power Hour
2 hours ago $1.10 earnedU.S. Healthcare & Blockchain Solutions
13.9K6 -
15:23
Producer Michael
23 hours agoINSIDE AL CAPONE'S BULLETPROOF 1928 CADILLAC
44.1K6