~/talk

Pointers? In My Python? It's More Likely Than You Think!

Talkat PyCon SK 2024 · 2024-03-15..03-17· [python]
slides:none on file

Explains where Python uses pointer-like references: variable names and container slots point to objects, so assignment creates aliasing unless using list.copy() or copy.deepcopy(); demonstrates shallow vs deep copy with lists-of-lists. Shows id() / is vs == differences and uses gc.collect() to find a cyclic isolate that clears four objects. Builds a cyclic pair with __del__ finalizers and a “bad” __del__ that resurrects an object via globals(), which prevents collection until that extra reference is removed.

AI-written summary · about

  1. 0:00Introduction
  2. 1:11Pointers in Python
  3. 3:00Pointer aliasing explained
  4. 8:22Copy vs deep copy
  5. 10:12Tuples behaving badly
  6. 13:49Object IDs and comparisons
  7. 20:32Reference counting
  8. 25:50Garbage collection basics
  9. 33:12Summary and Q&A
~/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.