Python Improvements (or This Is Not Your Teacher's Python)
summary
Covers concrete Python 3.6–3.7 changes: literal f-strings for inline formatting, numeric literals like 1_000_000_000 and formatting with underscores, nanosecond timing APIs, dicts that preserve insertion order, and pathlib replacing os.path joins. Security tools include the secrets module (choice, token_hex) and new hashes like SHA‑3 plus scrypt for slow salts. Language utilities: dataclasses that auto-generate init/eq/repr, namedtuple defaults and replace, and optional static typing with tools like monkeytype.
AI-written summary · about
chapters (30)
- 0:00Introduction
- 2:23Python versions
- 3:03Enumeration ignore
- 3:55Speeddating
- 4:33Folding Dates
- 5:17Time in Nanoseconds
- 5:47Fstrings
- 8:44Underscores
- 9:42Dictionaries
- 10:47Sorting keys
- 11:37Async IO
- 12:30ASCII
- 13:10Path Libraries
- 14:15Cryptographic Library
- 17:17Blowfish
- 19:06Secrets
- 20:52Data Classes
- 24:22Walk vs Scan
- 26:02Type
- 29:41Type Libraries
- 32:27Type Tools
- 33:05Named tuples
- 35:02Defaults
- 36:14Bad Assignment
- 38:12Name tuple class
- 38:45Add function to tuple
- 39:17Add cooking time
- 39:34Name error
- 40:12Bufflehead
- 41:10Questions








