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

📧 Did you watch the free MMA chapters? (1+ hours of content)

Monday, April 29, 2024

Did you watch the free MMA chapters? Hey there! 👋 I wish you a fantastic start to the week. Last week, I launched Modular Monolith Architecture. More than 300+ students are already deep into the MMA

WP Weekly 191 - Essentials - Duplicate in Core, White Label Kadence, Studio for Mac

Monday, April 29, 2024

Read on Website WP Weekly 191 / Essentials It seems many essential features are being covered in-house, be it the upcoming duplicate posts/pages feature in the WordPress core or the launch of Studio

SRE Weekly Issue #422

Monday, April 29, 2024

View on sreweekly.com A message from our sponsor, FireHydrant: FireHydrant is now AI-powered for faster, smarter incidents! Power up your incidents with auto-generated real-time summaries,

Quick question

Sunday, April 28, 2024

I want to learn how I can better serve you ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Kotlin Weekly #404 (NOT FOUND)

Sunday, April 28, 2024

ISSUE #404 28st of April 2024 Announcements Kotlin Multiplatform State of the Art Survey 2024 Help to shape and understand the Kotlin Multiplatform Ecosystem! It takes 4 minutes to fill this survey.

📲 Why Is It Called Bluetooth? — Check Out This AI Text to Song Generator

Sunday, April 28, 2024

Also: What to Know About Emulating Games on iPhone, and More! How-To Geek Logo April 28, 2024 📩 Get expert reviews, the hottest deals, how-to's, breaking news, and more delivered directly to your

Daily Coding Problem: Problem #1425 [Easy]

Sunday, April 28, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. Suppose an arithmetic expression is given as a binary tree. Each leaf is an

PD#571 Software Design Principles I Learned the Hard Way

Sunday, April 28, 2024

If there's two sources of truth, one is probably wrong. And yes, please repeat yourself. ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

When Procrastination is Productive & Ghost integrating with ActivityPub

Sunday, April 28, 2024

Automattic, Texts, and Beeper join forces to build world's best inbox, Reflect launches its iOS app, how to start small rituals, and a lot more in this week's issue of Creativerly. Creativerly

C#503 Building pipelines with System.Threading.Channels

Sunday, April 28, 2024

Concurrent programming challenges can be effectively addressed using channels ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌