~/talk

Python is Weird

links:none on file
slides:none on file

Walks through the actual pipeline: tokenizing → parsing → AST → bytecode, then disassembles examples so you see which opcodes run. Demonstrates surprising valid constructs like ++4; and 0jif.1else-2 that exploit tokenizer rules, shows yield usable inside odd expression contexts and as defaults, proves modules/classes/instances are dictionaries by reading/writing sys.modules and using builtins._class to build a class from a function, and points out which behaviors are parser quirks versus bytecode artifacts.

AI-written summary · about

  1. 0:00Introduction to Python weirdness
  2. 2:20Reassigning True to False
  3. 3:04How Python tokenizes code
  4. 7:10Parsing Python into syntax trees
  5. 11:13Abusing Python grammar quirks
  6. 14:45CPython implementation insights
  7. 15:49Python bytecode generation
  8. 18:04Dictionaries and Python internals
  9. 20:17Turning functions into classes
  10. 23:39Closing and contact info
  11. 24:44Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.