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.
-
18:42
Navy Media
4 hours agoHouthis ATTACK the Wrong U.S. Fighter Jet – Then THIS Happened…
11.1K21 -
40:24
MetatronGaming
1 day agoSomething is REALLY Wrong with this apartment...
5.75K2 -
LIVE
SpartakusLIVE
4 hours agoHUGE NEW UPDATE - Aim Assist NERF, New META, New MOVEMENT || #1 King of Content
353 watching -
2:32:26
XDDX_HiTower
2 hours agobattlefield 6 with the crew! [RGMT CONTENT Mgr. | RGMT GL | GZW CL]
9.21K -
2:28:57
Nikko Ortiz
4 hours agoVirtual Reality Milsim... | Rumble LIVE
20.5K4 -
LIVE
StevieTLIVE
3 hours agoNEW UPDATE Warzone WINS w/ The Fellas
63 watching -
9:00:32
Dr Disrespect
12 hours ago🔴LIVE - DR DISRESPECT - WARZONE x BLACK OPS 7 - SEASON 1 INTEGRATION
143K7 -
1:25:00
Sam Tripoli
4 hours ago $0.02 earnedPunch Drunk Sports LIVE!
17K2 -
55:45
MattMorseTV
3 hours ago $0.10 earned🔴Trump scores 3 VICTORIES in ONE DAY.🔴
20.7K34 -
LIVE
Badlands Media
9 hours agoSITREP Ep. 137
1,056 watching