~/talk

Because You Can Run, You Can't Hide: Some Musings on API Design

Talkat PyData London 2019 · 2019-07-12..07-14· [python]
slides:none on file

Claim: Python’s runtime makes true information hiding infeasible. Demonstrations use inspect.getsource and disassembly to copy functions and swap constants/defaults, a bytecode trick to perform tuple mutation via bytecode, and writing process memory through /proc/self/mem to flip bytes. PEP 551/557 auditing hooks appear as partial mitigation. Practical advice: rely on simple properties plus code review, keep convenience layers shallow, and offer explicit safety valves so users can escape instead of fighting an arms race of obfuscation.

AI-written summary · about

  1. 0:00Introduction
  2. 2:14API design in science
  3. 5:42Python API metaphors
  4. 9:12Hiding state in Python
  5. 13:24Information hiding fails
  6. 17:41Security and auditing
  7. 21:55Human-centric API design
  8. 27:30Practical API lessons
  9. 30:18Q&A
~/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.