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.
-
14:54
The Kevin Trudeau Show Limitless
3 days agoThe Hidden Force Running Your Life
100K22 -
2:16:35
DLDAfterDark
7 hours ago $5.80 earnedIs The "SnapPocalypse" A Real Concern? Are You Prepared For SHTF? What Are Some Considerations?
21.9K9 -
19:58
TampaAerialMedia
19 hours ago $7.80 earnedKEY LARGO - Florida Keys Part 1 - Snorkeling, Restaurants,
36.7K17 -
1:23
Memology 101
2 days ago $7.07 earnedFar-left ghoul wants conservatives DEAD, warns Dems to get on board or THEY ARE NEXT
29.9K60 -
3:27:27
SavageJayGatsby
9 hours ago🔥🌶️ Spicy Saturday – BITE Edition! 🌶️🔥
56.8K6 -
26:09
Exploring With Nug
19 hours ago $12.27 earned13 Cold Cases in New Orleans What We Discovered Beneath the Surface!
53K23 -
27:39
MYLUNCHBREAK CHANNEL PAGE
14 hours agoDestroying Time.
135K41 -
3:27:19
Mally_Mouse
9 hours ago🌶️ 🥵Spicy BITE Saturday!! 🥵🌶️- Let's Play: Minecraft Christmas Adventure!!
134K9 -
2:14:31
Side Scrollers Podcast
14 hours agoSide Scrollers INVITE ONLY - Live From Dreamhack
160K16 -
1:18:23
Simply Bitcoin
2 days ago $14.62 earnedThe Bitcoin Crucible w/ Alex Stanczyk and Lawrence Lepard
39.3K7