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
Crypto Power Hour
2 hours agoGold Tokenization w/ Sebastian Serrell-Watts COO Solum Global
59 watching -
Game On!
20 hours ago $3.82 earnedHappy Football Friday! Best Bets For The Weekend!
34.7K1 -
8:20
Freedom Frontline
17 hours agoChuck Schumer PANICS As Republican Senator EXPOSES His Double Standards
31.1K29 -
35:04
Uncommon Sense In Current Times
18 hours ago $1.19 earnedPop Marxism & America’s History Crisis | Dr. Eric Patterson on Education, Freedom & Cultural Renewal
25.3K6 -
7:18
The Shannon Joy Show
18 hours agoThe Medical Freedom Community is TURNING on Trump
21.3K10 -
1:56
NAG Daily
17 hours agoQUICKFIRE NEWS HEADLINES W/GreenMan Reports
19.3K1 -
2:00:47
BEK TV
1 day agoTrent Loos in the Morning - 10/10/2025
16.4K1 -
46:59
Coin Stories with Natalie Brunell
18 hours agoBorrow Dollars, Hold Bitcoin: The Debasement Play with Mauricio Di Bartolomeo
66.4K5 -
2:59:23
Side Scrollers Podcast
22 hours agoAssassin’s Creed CIVIL War CANCELLED + Hasan Caught in LIE About Dog Collar + More | Side Scrollers
99.3K25 -
1:33:41
Dinesh D'Souza
1 day agoThe Dragon's Prophecy Film
73.6K37