Python is Weird
summary
Covers the tokenizer reading left-to-right so odd tokens like ++4; and 0jif.1else-2 become valid, shows how tokenization produces surprising floats and complex-number tokens, walks parser → AST → bytecode with disassembly (OR becomes jump/pop), demonstrates lambda generators and yield-as-default pitfalls, explains modules/classes as dictionary-backed objects and the store_name vs store_fast bytecode difference, mentions work on Jedi sparser and parso at cloudscale.ch and uses CPython internals like build_class to reconstruct classes.
AI-written summary · about
chapters (11)
- 0:00Intro
- 1:41Top Security
- 2:42Python
- 4:22Tokenizer
- 9:22How many spaces
- 11:28Parser
- 15:11Yield
- 16:38Insert
- 21:12Classes are Functions
- 22:06bytecode differences
- 22:57builtins
related talks
31mDon't Do This
27mPython: From Source to Execution
50mPerformance tricks learned from low level developers
01h 07mWhat Does It All Really Mean
25mPython as a Hackable Language for Interactive Data Science
27mPython Oddities Explained
22mDecoding: programming beyond text files
49mYou Used Python for What?!
