Learn AI, Data Science & Business — Earn Certificates That Get You Hired
Get 20% off all career paths from fullstack to AI
Overview
Build a Learning Habit
Download Class Central's free printable study calendar
Download for Free
Explore a novel programming technique in this 20-minute conference talk that introduces "lazy-freeze" - an innovative approach to object immutability in Python. Learn how objects can remain mutable during their initial lifecycle but automatically become immutable upon their first hash calculation, allowing for convenient manipulation until the object is used as a dictionary key or set item. Discover how this method maintains safety and integrity while providing flexibility in object design. Gain insights from an experienced developer with over 20 years of programming expertise as they demonstrate practical applications and benefits of this hashing and immutability strategy for Python development.
Syllabus
Lazy-Freeze: Another Look at Hashing and Immutability / Ofek Shilon
Taught by
PyCon Israel