Python secretly caches integers from -5 to 256. This is just one of the internal optimizations that explains its most surprising behaviors.
#1about 5 minutes
Understanding the core attributes of Python objects
Every object in Python is defined by its value, ID, and type, with mutable objects like lists differing from immutable ones like tuples.
#2about 2 minutes
Exploring Python's dynamic and duck typing model
Python uses dynamic typing, where a variable is a pointer to an object, allowing for flexible 'duck typing' based on method availability rather than inheritance.
#3about 6 minutes
Navigating variable scopes with global and nonlocal
Python resolves variables using the LEGB rule (Local, Enclosing, Global, Built-in), and the `global` and `nonlocal` keywords are used to modify variables in outer scopes.
#4about 2 minutes
How Python simulates private methods using name mangling
Python doesn't have true private methods, but it uses name mangling on methods prefixed with a double underscore to discourage direct access from outside the class.
#5about 3 minutes
Understanding boolean logic and short-circuit evaluation
The `and` and `or` operators use short-circuit evaluation, stopping as soon as the outcome is known and returning the actual object that determined the result.
#6about 5 minutes
Exploring comparison operators and Python's caching behavior
The `is` operator checks for object identity, revealing Python's internal caching of small integers and simple strings for performance optimization.
#7about 1 minute
Audience Q&A on slots, globals, and private properties
The speaker answers audience questions regarding the relevance of `__slots__` in modern Python and the best practices for using `global` and `nonlocal` keywords.
Related jobs
Jobs that call for the skills explored in this talk.
Dev Digest 205: AI vs. OSS, Hidden ChatGPT Features, Linux in a PDFInside last week’s Dev Digest 205 .
😔 The end of the curl bug bounty
📝 Agent Skills vs. Rules vs. Commands
💬 The best hidden ChatGPT features
📅 Weaponising calendar invites
🟪 CSS in 2026
🐍 Python numbers you should know
👨💻 The Github Copilot SDK
💻 ...
Daniel Cranney
The CODE100 2025 Final Puzzle ExplainedEurope’s Ultimate Coding Competition is in the books for another year!
With this in mind, we sat down with our 2025 CODE100 Champion, Nimrod Kor, to look back on how he solved the puzzle in the final round to secure victory.
The Challenge
Our final ...
Benedikt Bischof
Python Basics2021 was a year of celebration for one of the most popular programming languages (according to Stack Overflow) as it turned 30. We are talking about Python of course.Its story begins in 1989 around Christmas and Guido van Rossum thought about a holid...
Daniel Cranney
Dev Digest 155: Hashtable breakthrough, Multi-threaded Python and DeepSeek LeaksInside last week’s Dev Digest 155 .
🤯 40 year old hashtable myth busted!
🐍 Multi threaded and multi core Python
🐋 There’s been a DeepSeek leak
🤷♂️ People don’t care about your AI feature
🔐 Application Security Trends 2025
😳 The end of programming a...
From learning to earning
Jobs that call for the skills explored in this talk.