~/talk

It Really is Easier to Ask for Forgiveness (than Permission)

Talkat GOTO Chicago 2019 · 2019-04-29..04-30· [python]
slides:none on file

Argues that Python’s EAFP over LBYL style is intentional and often faster, walks the exception class hierarchy, shows live Jupyter examples (sys.exit → SystemExit, iterator exhaustion → StopIteration/GeneratorExit, attribute lookup → AttributeError→__getattr__), warns against bare except/try-except-pass and oversized try blocks, and runs a timing where a for-loop that uses iterator exceptions ends up two orders of magnitude faster than a while-loop version that avoids exceptions.

AI-written summary · about

  1. 0:00Start
  2. 5:50When Things Go Wrong
  3. 9:16Java
  4. 10:07Javascript
  5. 11:37Python
  6. 13:50Pythons Exception System
  7. 15:06Raise an Exception
  8. 19:01Exception Hierarchy
  9. 20:46Custom Subclassed Exceptions
  10. 27:01Handling an Exception
  11. 35:47The Harry Potter Theory
  12. 41:37End-of-File Error
  13. 44:04Generator Exit Exception
~/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.