Diana Gastrin
Python: Behind the Scenes
#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.
Picnic Technologies B.V.
Amsterdam, Netherlands
Intermediate
Senior
Python
Structured Query Language (SQL)
+1
Matching moments
04:09 MIN
How Python became the dominant language for AI
AI in the Open and in Browsers - Tarek Ziadé
02:49 MIN
Using AI to overcome challenges in systems programming
AI in the Open and in Browsers - Tarek Ziadé
02:33 MIN
Why you might not need JavaScript for everything
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
01:15 MIN
Crypto crime, EU regulation, and working while you sleep
Fake or News: Self-Driving Cars on Subscription, Crypto Attacks Rising and Working While You Sleep - Théodore Lefèvre
14:14 MIN
Scripting presentations and demos in VS Code
Devs vs. Marketers, COBOL and Copilot, Make Live Coding Easy and more - The Best of LIVE 2025 - Part 3
04:57 MIN
Increasing the value of talk recordings post-event
Cat Herding with Lions and Tigers - Christian Heilmann
02:20 MIN
The evolving role of the machine learning engineer
AI in the Open and in Browsers - Tarek Ziadé
08:07 MIN
Exploring modern JavaScript performance and new CSS features
WeAreDevelopers LIVE – AI, Freelancing, Keeping Up with Tech and More
Featured Partners
Related Videos
Pointers? In My Python? It's More Likely Than You Think
Eli Holderness
CUDA in Python
Andy Terrel
Overview of Machine Learning in Python
Adrian Schmitt
Enterprise Python: Software That Lives Long And Prosper
Álvaro Durán
Making Sense of Programming Languages
Aleksandra Sikora
Accelerating Python on GPUs
Paul Graham
C++ Features You Might Not Know
Jonathan Müller
Accelerating Python on GPUs
Paul Graham
Related Articles
View all articles


.gif?w=240&auto=compress,format)
From learning to earning
Jobs that call for the skills explored in this talk.

StackStudio Digital Ltd.
Edinburgh, United Kingdom
£104-117K
Python
Agile Methodologies



Playrix
Barcelona, Spain
Remote
Intermediate
API
Redis
React
Django
+5




Playrix
Pamplona, Spain
Remote
Intermediate
API
Redis
React
Django
+5

Playrix
Taramundi, Spain
Remote
Intermediate
API
Redis
React
Django
+5