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.
-
40:24
MetatronGaming
1 day agoSomething is REALLY Wrong with this apartment...
1392 -
LIVE
SpartakusLIVE
3 hours agoHUGE NEW UPDATE - Aim Assist NERF, New META, New MOVEMENT || #1 King of Content
222 watching -
LIVE
XDDX_HiTower
2 hours agobattlefield 6 with the crew! [RGMT CONTENT Mgr. | RGMT GL | GZW CL]
100 watching -
2:28:57
Nikko Ortiz
3 hours agoVirtual Reality Milsim... | Rumble LIVE
11.1K4 -
LIVE
StevieTLIVE
2 hours agoNEW UPDATE Warzone WINS w/ The Fellas
60 watching -
9:00:32
Dr Disrespect
11 hours ago🔴LIVE - DR DISRESPECT - WARZONE x BLACK OPS 7 - SEASON 1 INTEGRATION
137K7 -
1:25:00
Sam Tripoli
3 hours ago $1.87 earnedPunch Drunk Sports LIVE!
10.4K2 -
55:45
MattMorseTV
3 hours ago $8.94 earned🔴Trump scores 3 VICTORIES in ONE DAY.🔴
14.8K29 -
LIVE
Badlands Media
8 hours agoSITREP Ep. 137
2,066 watching -
1:53:04
Barry Cunningham
6 hours agoLIVE BREAKING NEWS: President Trump And Melania Trump Host The National Christmas Tree Lighting
72.3K12