~/talk

Typed Python ...or what I like to call: Python++

Talkat 4Dev LIVE 2021 · 2021-10-27..10-28· [python]
links:none on file
slides:none on file

Typed Python adds real static typing to Python and delivers concrete features: dataclasses and attrs create zero-cost struct-like classes with auto init, equality, hashing and slots; mypy and PyCharm perform static checks; Literal and overload plus TypeVar, Union and new 3.10 | syntax express value-dependent returns. A runtime-accessible typing API is used to write a generic JSON→class parser/validator at IBM that returns precise indexed errors for graphs and nodes and it works in production to replace ad hoc dict handling.

AI-written summary · about

  1. 0:00Introduction to Typed Python
  2. 2:31Python's typing evolution
  3. 7:48Type support in classes
  4. 10:14Class fields and data classes
  5. 19:53Unions and type flexibility
  6. 23:01Union syntax improvements
  7. 25:33Type variables and generics
  8. 30:33Self-typed methods
  9. 32:39Custom generic types
  10. 34:25Overloads for complex types
  11. 38:24Literal types explained
  12. 41:57Runtime type access benefits
  13. 43:43Practical parsing example
  14. 47:16Why Python++ matters
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.