~/talk

Easier Classes: Python Classes Without All The Cruft

Talkat DjangoCon US 2018 · 2018-10-14..10-19· [python, developer-experience]
slides:none on file

Builds concrete Month and point class examples and shows which helpers actually implement dunder methods for you: namedtuple gives immutability and repr but inherits tuple quirks (ordering, length, addition), attrs is pip-install third party and is more feature-rich, and dataclasses (built into Python 3.7 but pip-installable otherwise) produces init, repr, equality, and can be frozen and made iterable (as_tuple or __iter__); friendly classes end up under ten lines and really do remove boilerplate.

AI-written summary · about

  1. 0:00Start
  2. 4:33Class Immutable
  3. 11:08Data Classes
  4. 14:10Data Classes Is Built In to the Python Standard Library
  5. 17:16Dunder Methods
~/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.