Python Dicts: Past, Present, and Free-Threaded Future - Lysandros Nikolaou @EuroPythonConference
Python Dicts: Past, Present, and Free-Threaded Future - Lysandros Nikolaou  @EuroPythonConference
Uploaded August 2026 | Updated September 2026, 2 weeks ago
[EuroPython 2026 - S1 on 2026-07-16]
๐ŸŽค *Python Dicts: Past, Present, and Free-Threaded Future by Lysandros Nikolaou*
๐Ÿ”— https://ep2026.europython.eu/session/python-dicts-past-present-and-free-threaded-future

๐Ÿ“ Abstract:
Python dicts are everywhere! They back module namespaces, instance attributes, **kwargs, and of course actual dictionaries. But have you ever wondered how they work under the hood? And more importantly, what happens to them now that free-threaded Python is here?

In this talk, we'll start by exploring the internals of CPython's dict implementation: how hashing works, the compact table layout that gives you insertion order, and how lookups, insertions, and deletions actually play out in memory. Then we'll see what had to change for free-threading: how reads remain fast without acquiring locks, what the per-object lock is and when it kicks in, and why making a dict thread-safe is harder than it sounds.

Finally, we'll look at the ongoing effort to document CPython's thread-safety guarantees for built-in types and what the resulting documentation means for a Python developer writing concurrent code.

The audience will leave with a deep understanding of how Python's most important data structure works, how it's been adapted for a free-threaded world, and what they can (or can't) safely do with dicts across threads.

---
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License: creativecommons.org/licenses/by-nc-sa/4.0
Python Dicts: Past, Present, and Free-Threaded Future - Lysandros NikolaouEuroPython 2025 - Sponsor HighlightsEuroPython 2026 - Conference Opening ๐ŸŽ‰Designing and Building Custom Keyboards โŒจ๏ธ with Python - Carlos A AranibarBreaking changes โ€“ not great, not terrible - Jan MusรญlekData wrangling in a modern terminal - Jan PipekWhats Your Favorite EuroPython Activity? What Is It Like To Bring A Project to #EuroPython2025The hardest test suite I ever built - a pytest case study - Grzegorz KocjanFlying in Formation - with Python Threading and ROS2 Parallelism - DEBORAH E DANJUMAWill you be joining us at our tutorials on Monday and Tuesday in Krakรณw? Stefanie Molin will be teacWhat Ive Learned Maintaining the MCP Python SDK - Marcelo TrylesinskiWhy should YOU come to #EuroPython2026
EuroPython Conference |

Python Dicts: Past, Present, and Free-Threaded Future - Lysandros Nikolaou

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER