`from __past__ import print_statement`: a Dadaist Rejection of Python 2 vs 3
summary
Presents a working, pip-installable hack that patches a running CPython by inserting a runtime C-Python trampoline to override eval behavior, plus a module that implements global read watches (demo breaks arithmetic like 1+1==4). Rewrites grammar to add syntax extensions so print becomes a statement again in Python 3, works on Linux and macOS but not Windows, misses edge cases (angle-bracket redirection and trailing-comma suppression) and deliberately perverse rather than production-ready.
AI-written summary · about
chapters (10)
- 0:00Dadaist talk intro
- 1:44Speaker’s PyData history
- 3:08Demonstration of ratch
- 7:00Read watches in CPython
- 8:45Reactions to ratch demo
- 9:27Python 2 vs 3 on HN
- 11:16Print statement in Python 3
- 13:20Did you mean and past modules
- 15:26Dadaism vs ideological constraints
- 17:30Conclusion & Q&A
related talks
28mHere be dragons: some elegant and ugly hacks in CPython
43mPython and Johnny Cash
31mIntroduce Syntax and History of Python from 2.4 to 3.6
31mDon't Do This
45mDon't Live Patch Your CPython Interpreter
43m5 Years of Bad Ideas
28mPipe-ifying Python: The how and why of interpreter hacking
30mDemystifying Python’s Internals: Diving into CPython by implementing...
