Introduce Syntax and History of Python from 2.4 to 3.6
summary
Covers concrete syntax and migration steps from Python 2.4 up through 3.6 and notes 3.7 features backported or upcoming, with code-level comparisons and refactoring advice. Highlights set and generator expressions, decorators, change to print function and division semantics, and adds f-strings for formatting, async/await for coroutines, and pathlib.Path plus os.scandir and secrets for file and security tasks. Recommends replacing percent formatting and old exception syntax, shows when changes are backward compatible and when to rewrite.
AI-written summary · about
chapters (11)
- 0:00Start
- 4:31The history of Python by release date
- 13:34import () Multi-line Imports
- 16:36%s vs str.format vs f-string
- 19:44dict Comprehensions
- 20:35enum (Python 3.4 +)
- 22:17@ operator
- 24:23secrets module
- 24:49Data Classes
- 27:00os.listdir() vs pathlib
- 29:04Important changes in each version
related talks
26mPython 2 to 3: How to Upgrade and What Features to Start Using
45mWriting Python 2/3 compatible code
31mPython 3 for People Who Haven't Been Paying Attention
01h 12mPython 3: the Next Generation (is here already)
43mPython Improvements (or This Is Not Your Teacher's Python)
01h 22mWhat's New in Python 3
30mWhat PHP learned from Python
37mKeynote 1: What's New in Python
