Introducing More of the Standard Library
summary
Covers concrete uses: file handling with pathlib paths and .read_text/.write_text and saving/loading game state to a data folder, date math like “days until next birthday” with datetime replace/isoformat and timedelta, specialized containers—Counter, deque, defaultdict, namedtuple—for counting and queues, iterator tools (chain, islice, combinations, cycle, zip_longest) to avoid copying big lists, and functools utilities—lru_cache making recursive factorial orders of magnitude faster (200! timing example) plus total_ordering and partial; ends with a working tic‑tac‑toe with undo/redo/save/load.
AI-written summary · about
chapters (19)
- 0:00Start
- 0:09Simon Ward Jones
- 0:51How Python Code Is Organized
- 1:10Built-In Functions
- 1:44Why Learn the Standard Library
- 10:47Json
- 11:28Renaming a File
- 14:13Replace all Text with Markdown
- 20:51Iso Format
- 33:37Double Ended Queue
- 35:12Max Len
- 37:42Default Dict
- 49:41Ester Tools
- 50:04What Is an Iterator and How Does a for Loop
- 50:20Iterator
- 53:10Tools
- 1:00:17Permutations
- 1:04:35Factorial
- 1:06:44Total Ordering
related talks
25mThe Standard Library Tour
20mLesser known data structures
52mPython Tips, Tricks, and Idioms
43mPython Improvements (or This Is Not Your Teacher's Python)
10mThe Gems of the Python Standard Library
21mAbstraction for students of all the things
57mPython's other collection types and algorithms
33mElegant Solutions For Everyday Python Problems
