~/talk

5 Years of Bad Ideas

Talkat EuroPython 2011 · 2011-06-20..06-26· [python]
slides:none on file

Rundown of concrete hacks: uses sys._getframe, metaclasses, exec/compile and the ast module to rewrite code, builds a GitHub importer that actually imports modules straight from GitHub (very slow but functional), implements a multiversion import system that renames modules and proxies by caller frame (surprisingly works), and patches tracebacks with ctypes traceback patching to remap template line numbers for debugging. Most techniques work but are brittle, slow, and break across Python versions or production environments.

AI-written summary · about

  1. 0:00Introduction
  2. 0:36What is spiking
  3. 1:37What is magic
  4. 3:23Common magic
  5. 5:41Classes
  6. 6:14Xik
  7. 7:35AST
  8. 8:27Style Markers
  9. 10:58Monkey patching
  10. 11:13Underbuilding
  11. 12:48System Modules
  12. 14:55Curvy Loading
  13. 16:04Multi Versioning
  14. 17:54Interpreter Warfare
  15. 18:12Local Variables
  16. 19:04Line Numbers
  17. 21:18Garbage Collection
  18. 22:26Implicit Self
  19. 24:08Return Values Ideas
  20. 39:18Global Dictionary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.