~/talk

Objects and classes in Python (and JavaScript)

Talkat EuroPython 2011 · 2011-06-20..06-26· [javascript, python]
links:none on file
slides:none on file

Covers concrete patterns for Python and JavaScript object design with runnable code on USB memory sticks and downloadable examples. Implements a str subclass with line numbers for file iteration, re-creates Python properties by passing four functions and shows the decorator form as property built from functions, demonstrates converting a class into tuple form and back so classes are class-to-tuple unpack/repack constructible, explores decorators that transform or block methods, touches slots and __exit__ usage, and runs live demos that work and are available after the session.

AI-written summary · about

  1. 0:00Introduction
  2. 2:16Practical exercises start
  3. 4:47Python properties and attributes
  4. 7:25Custom string and number behavior
  5. 8:48Bit arrays for subsets
  6. 10:26Unpacking class instances
  7. 11:29Decorators for classes
  8. 12:33Answering audience questions
  9. 15:17Python decorators deep dive
  10. 16:44Class statement alternatives
  11. 17:27Summary and next steps
~/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.