~/talk

Lesser known data structures

Talkat PyCon Australia 2014 · 2014-08-01..08-05· [python]
slides:none on file

Standard library collections show concrete wins: namedtuple memory footprint equals tuples so thousands of records stay small; deque with maxlen supports O(1) append/pop left and right but is slow for middle edits and is used as in-memory buffers; counter ~1000 GitHub hits demonstrates real usage and gives most_common etc; defaultdict auto-initializes with a factory; Queue provides a thread-safe job queue with task_done; a proposed bag recipe was not accepted into the stdlib. Source sits under cpython/lib and pythonmentor.org helps contributors.

AI-written summary · about

  1. 0:00Start
  2. 3:25Collections Module
  3. 6:55Shortest Path Algorithm
  4. 9:05Counter
  5. 15:09Middle Classes
  6. 19:20Python Mentors
~/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.