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.
Matching moments
12:04 MIN
The history and philosophy of the Python language
Python Data Visualization @ Deepnote (w/ PyViz overview)
Unlock Moments
Create a free account to watch a limited number of Moments each month.
Upgrade to PRO for unlimited access to the full archive.
Upgrade to PRO for unlimited access to the full archive.
You have an account? Log in
06:38 MIN
Adopting a philosophy of configuration without configuration files
Automagic Configuration in Python
Unlock Moments
Create a free account to watch a limited number of Moments each month.
Upgrade to PRO for unlimited access to the full archive.
Upgrade to PRO for unlimited access to the full archive.
You have an account? Log in
04:29 MIN
Exploring the versatility of Python across different domains
Debugging Schrödinger's App
Unlock Moments
Create a free account to watch a limited number of Moments each month.
Upgrade to PRO for unlimited access to the full archive.
Upgrade to PRO for unlimited access to the full archive.
You have an account? Log in
05:30 MIN
Q&A on garbage collection performance and common pitfalls
Pointers? In My Python? It's More Likely Than You Think
Unlock Moments
Create a free account to watch a limited number of Moments each month.
Upgrade to PRO for unlimited access to the full archive.
Upgrade to PRO for unlimited access to the full archive.
You have an account? Log in
07:43 MIN
How a CIO stays technically sharp and hands-on
Coffee with Developers
Unlock Moments
Create a free account to watch a limited number of Moments each month.
Upgrade to PRO for unlimited access to the full archive.
Upgrade to PRO for unlimited access to the full archive.
You have an account? Log in
01:52 MIN
Key use cases for Python streaming frameworks
Convert batch code into streaming with Python
Unlock Moments
Create a free account to watch a limited number of Moments each month.
Upgrade to PRO for unlimited access to the full archive.
Upgrade to PRO for unlimited access to the full archive.
You have an account? Log in
03:58 MIN
Why Python became the dominant language for AI
Coffee with Developers - Stephen Jones - NVIDIA
Unlock Moments
Create a free account to watch a limited number of Moments each month.
Upgrade to PRO for unlimited access to the full archive.
Upgrade to PRO for unlimited access to the full archive.
You have an account? Log in
02:14 MIN
How Python's global interpreter lock affects multithreading
Concurrency in Python
Unlock Moments
Create a free account to watch a limited number of Moments each month.
Upgrade to PRO for unlimited access to the full archive.
Upgrade to PRO for unlimited access to the full archive.
You have an account? Log in
Featured Partners
Related Videos
Pointers? In My Python? It's More Likely Than You Think
Eli Holderness
Overview of Machine Learning in Python
Adrian Schmitt
CUDA in Python
Andy Terrel
Accelerating Python on GPUs
Paul Graham
Python Data Visualization @ Deepnote (w/ PyViz overview)
Radovan Kavický
Automagic Configuration in Python
Oliver Bestwalter
Full Stack Web Apps With Nothing But Python
Eli Holderness
Concurrency in Python
Fabian Schindler
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.


CONTIAMO GMBH
Berlin, Germany
Senior
Python
Docker
TypeScript
PostgreSQL





ETH Zürich
Zürich, Switzerland

Scenarium AI GmbH
Remote
Intermediate
Microservices
Machine Learning
