~/talk

Elegant solutions for everyday Python problems

Talkat PyCon Canada 2017 · 2017-11-18..11-21· [python]
slides:none on file

Defines a Currency class that supports __add__ currency-aware addition so you can sum dollars and euros with automatic conversion; builds an iterable Server that filters only active services via __iter__/__next__ and shows the simpler generator alternative; implements a feature-flag context manager using contextlib.contextmanager yield to toggle and restore state; demonstrates decorators with functools.wraps to preserve metadata, uses functools.partial base=2 for binary parsing, getattr for command dispatch, and a 400-line gh REST client used for rapid prototyping.

AI-written summary · about

  1. 0:00Introduction
  2. 0:26Who is this talk for
  3. 1:18What is elegant code
  4. 2:43Magic methods
  5. 6:04Iterators
  6. 6:54Iterable servers
  7. 11:14Method magic
  8. 16:59How it works
  9. 18:43Context managers
  10. 22:51decorators
  11. 28:24context decorators
~/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.