Get your Guide to the Python 3 Interpreter (Book Launch)

CPython Internals (our new book) is available at a 60% "Early Access" discount until Thursday night
Click here to learn more and claim your discount

Hey there,

Are there certain parts of Python that just seem like magic?

Like, how dictionaries are so much faster than looping over a list to find an item…

How does a generator remember the state of the variables each time it yields a value—and why do you never have to allocate memory like in other languages?

It turns out, CPython, the most popular Python runtime is written in human-readable C and Python code…

The CPython interpreter abstracts away the complexities of the underlying C platform and your operating system.

It makes threading cross-platform and straightforward.

It takes the pain of memory management in C and makes it simple.

In short, CPython gives you the platform to write scalable and performant applications using the comfortable and powerful syntax of Python…

However, these abstractions aren’t perfect, and they’re often leaky:

That’s why at some stage in your progression as a Python developer, you can benefit greatly from understanding how CPython works internally.

By “peeking behind the scenes” of the Python runtime, you’ll deepen your skills and become a true Pythonista…

You’ll get one step closer to truly mastering Python, enabling you to write beautiful & idiomatic code that’s also fast and efficient.

Once you see how Python works at the interpreter level, you can optimize your applications and fully leverage the power of Python.

The thing is, few developers take the time to understand their tools at such a deep level—it’s a surefire way to impress colleagues and interviewers alike.

That's why we're launching the "CPython Internals" book today.

This book explains the concepts, ideas, and technicalities of CPython in an approachable and hands-on fashion.

By the end of the book you'll be able to:

* Read and navigate the CPython 3.9 interpreter source code. You’ll deeply comprehend and appreciate the inner workings of concepts like lists, dictionaries, and generators.

* Make changes to the Python syntax and compile your own version of CPython, from scratch. You’ll customize the Python core data types with new functionality and run CPython’s automated test suite.

* Master CPython’s memory management capabilities and scale your Python code with parallelism and concurrency.

* Debug C and Python code like a true professional. Profile and benchmark the performance of your Python code and the runtime.

* Participate in the development of CPython and know how to contribute to future versions of the Python interpreter and standard library. How great would it feel to give back to the community as a “Python Core Developer?”

The subtitle of the book is "Your Guide to the Python 3 Interpreter" (for good reason!)

You see, with this book you’ll cover the critical concepts behind the internals of CPython and how they work with visual explanations as you go along.

Once you’ve completed the book, you’ll be able to use your newfound knowledge to:

Write custom extensions for Python, written in the C programming language (the book includes an “Intro to C for Pythonistas” chapter).

Use your deep knowledge of the CPython interpreter to improve your own Python applications.

Contribute to the CPython project and start your journey towards becoming a Python Core Developer.

Moreover, you’ll feel a sense of achievement that you fully grasp the core concepts of Python that make you a better and more effective Python programmer.

Because you're a newsletter subscriber, I'm offering you a big “Early Access” discount for the book:

You can still claim your 60% OFF discount today. 

See the link below to learn more:

>> Click here to master Python 3 at a deeper level (and get a 60% discount)

— Dan Bader

Older messages

New Python tutorials on Real Python

Saturday, May 30, 2020

Hey there, There's always something going on over at realpython.com as far as Python tutorials go. Here's what you may have missed this past week: Creating and Modifying PDF Files in Python In

How do developers remember all that programming stuff?

Sunday, May 24, 2020

Hey there, Back when I was just getting started with programming, I couldn't fathom how professional developers were able to keep all of the relevant information in their heads while coding.

New Python tutorials on Real Python

Saturday, May 23, 2020

Hey there, There's always something going on over at realpython.com as far as Python tutorials go. Here's what you may have missed this past week: Python vs JavaScript for Pythonistas Python

New Python tutorials on Real Python

Saturday, May 16, 2020

Hey there, There's always something going on over at realpython.com as far as Python tutorials go. Here's what you may have missed this past week: Python eval(): Evaluate Expressions

A shoutout to the street-fighting dev

Friday, May 15, 2020

Hey there, You know what sucks about life as a “professional developer”? Not having enough time to sit down and focus on learning. In school (or university etc) it was easy to carve out hours to hole

You Might Also Like

Import AI 399: 1,000 samples to make a reasoning model; DeepSeek proliferation; Apple's self-driving car simulator

Friday, February 14, 2025

What came before the golem? ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Defining Your Paranoia Level: Navigating Change Without the Overkill

Friday, February 14, 2025

We've all been there: trying to learn something new, only to find our old habits holding us back. We discussed today how our gut feelings about solving problems can sometimes be our own worst enemy

5 ways AI can help with taxes 🪄

Friday, February 14, 2025

Remotely control an iPhone; 💸 50+ early Presidents' Day deals -- ZDNET ZDNET Tech Today - US February 10, 2025 5 ways AI can help you with your taxes (and what not to use it for) 5 ways AI can help

Recurring Automations + Secret Updates

Friday, February 14, 2025

Smarter automations, better templates, and hidden updates to explore 👀 ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

The First Provable AI-Proof Game: Introducing Butterfly Wings 4

Friday, February 14, 2025

Top Tech Content sent at Noon! Boost Your Article on HackerNoon for $159.99! Read this email in your browser How are you, @newsletterest1? undefined The Market Today #01 Instagram (Meta) 714.52 -0.32%

GCP Newsletter #437

Friday, February 14, 2025

Welcome to issue #437 February 10th, 2025 News BigQuery Cloud Marketplace Official Blog Partners BigQuery datasets now available on Google Cloud Marketplace - Google Cloud Marketplace now offers

Charted | The 1%'s Share of U.S. Wealth Over Time (1989-2024) 💰

Friday, February 14, 2025

Discover how the share of US wealth held by the top 1% has evolved from 1989 to 2024 in this infographic. View Online | Subscribe | Download Our App Download our app to see thousands of new charts from

The Great Social Media Diaspora & Tapestry is here

Friday, February 14, 2025

Apple introduces new app called 'Apple Invites', The Iconfactory launches Tapestry, beyond the traditional portfolio, and more in this week's issue of Creativerly. Creativerly The Great

Daily Coding Problem: Problem #1689 [Medium]

Friday, February 14, 2025

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given a linked list, sort it in O(n log n) time and constant space. For example,

📧 Stop Conflating CQRS and MediatR

Friday, February 14, 2025

​ Stop Conflating CQRS and MediatR Read on: m​y website / Read time: 4 minutes The .NET Weekly is brought to you by: Step right up to the Generative AI Use Cases Repository! See how MongoDB powers your