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

Hands-on recipes for actual problems: reading files while keeping the original string but attaching filename and line number by subclassing str for labeled lines; creating properties by turning a small class into a property factory with property_from_class decorator; making named integers that print as words while behaving like ints; compact bitset-like subsets stored as raw integers; converting class data to tuples and back; using class decorators to avoid complex metaclasses; a brief demo showing JavaScript objects behave like Python classes. Training materials are on USB and updated.

AI-written summary · about

  1. 0:00Start
  2. 1:54Examples Exercises
  3. 2:18Exercises
  4. 13:13Questions
  5. 15:06Table of Contents
  6. 16:49Meta Classes
~/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.