~/talk

So you want to be a Python expert?

Talkat PyData Seattle 2017 · 2017-06-30..07-02· [python, data-visualization]
slides:none on file

Live demos on Python 3.6 implement concrete behaviors: add a class with __init__, __repr__, __add__, __len__ and it prints and adds as expected; disassemble and monkeypatch __build_class__ to intercept class creation; enforce subclass contracts with a metaclass and with __init_subclass__; write and apply a timer decorator and an n-times decorator; convert long computations to generators and use contextlib.contextmanager to wrap a generator as a context manager (SQLite temp table example) — everything runs in the demo.

AI-written summary · about

  1. 0:00About PyData and being proficient in Python
  2. 4:09Important features of Python and audience survey
  3. 7:40Data model methods
  4. 10:14__init__ method
  5. 11:15__repr__ method
  6. 12:17__add__ method
  7. 15:51__len__ method
  8. 18:42__call__ method
  9. 20:50Metaclasses and the problem of writing safe library code
  10. 27:00Contraints on the library code using assert
  11. 32:33Compile-time vs run time executable code
  12. 34:42Disassembling class code and using __build_class__
  13. 40:26Constraining library code with the metaclass pattern
  14. 47:22Introducing decorators
  15. 49:07Code inspection
  16. 57:36Writing a timer function
  17. 59:42Decorator syntactic sugar
  18. 1:03:00Writing a ntimes decorator
  19. 1:06:32Wrapping functions into class
  20. 1:10:51Eager execution
  21. 1:14:02__iter__ and __next__ methods
  22. 1:17:40yield and the Generator syntax
  23. 1:20:35Coroutines and interleaving
  24. 1:24:35Context Managers
  25. 1:25:30Setup and teardown of resources
  26. 1:28:38Applying to SQL transactions
  27. 1:30:10__enter__ and __exit__ methods
  28. 1:32:30Links between generators and context managers
  29. 1:36:02Refactoring the SQL query code
  30. 1:37:52Wrapping up
  31. 1:40:04Opinions on writing clear code in Python
  32. 1:48:18Q&A
~/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.