~/talk

Python Oddities Explained

Talkat PyCon US 2022 · 2022-04-27..05-03· [python]
slides:none on file

Examples and concrete outcomes decide whether to watch: loop variable ends up as 8 after for x in numbers but a list comprehension leaves x at 0 in Python 3, using += inside a function raises an error when it makes the name local, list += mutates the list while tuple += creates a new tuple, list += with a string extends by characters, appending a list to itself makes a recursive structure, and augmented assignment first calls __iadd__ then does an assignment so mutations can happen before an assignment fails.

AI-written summary · about

  1. 0:00Introduction
  2. 1:28Variables
  3. 9:06tuples
  4. 12:14ducks
  5. 17:47mental break
~/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.