~/talk

On Being Pythonic

Talkat PyCon Australia 2015 · 2015-07-31..08-04· [python]
links:none on file
slides:none on file

Claims that many classic design patterns become unnecessary in Python and shows the concrete mappings that replace them: classes-as-factories, modules-as-singletons, trivial iterators/adapters/proxies. Live code builds an average() function, fixes integer-division and float quirks, chooses between raising a custom exception or returning NaN propagation, and contrasts EAFP vs LBYL for error handling. Uses and mentions tools like NumPy, pandas, Cython, itertools, functools and collections. Demonstrations run on Windows and cover generators, iterables without len, and practical type/duck behavior via duck typing.

AI-written summary · about

  1. 0:00Intro
  2. 3:48No average function
  3. 6:41Plus
  4. 8:54Not Pythonic
  5. 12:29Errors
  6. 19:59Types
  7. 28:54Collections
  8. 29:54System Design
  9. 31:54Class Design
  10. 32:54Book
  11. 33:54Design Patterns
  12. 34:54Factory and Sorting
  13. 35:54Singletons
  14. 36:54Adapters
  15. 37:54Classes
  16. 38:54Questions
  17. 39:54Suppressing assert
  18. 40:54Functional level tools
  19. 42:54Composition vs inheritance
  20. 43:54Book vs document
  21. 44:54Pythonic way
~/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.