~/talk

Building your own kind of dictionary

Talkat PyOhio 2010 · on Saturday, 2010-07-31· [python]

This presentation shows how to implement a custom dictionary-like object in Python that enforces constraints on values: some keys must map to instances of a specified class (e.g., a Color class) and other keys must map to elements of a particular set (e.g., a set of allowed movies). The talk demonstrates iterating through different implementations, using tests to validate them, and highlights issues encountered with super() plus a bit of explanation about relevant Python internals.

AI-written summary · about

~/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.