My name is Sostenes Lima, and I’m a father, psychotherapist, and clinical consultant living in Los Angeles, California. When I’m not spending time with my family, I’m usually in the therapy room…
Python is a beloved programming language in many fields. Most AI developers and researchers write Python code on the Tensorflow and PyTorch frameworks. Python is also widely used in data analytics with a rich set of data visualization tools like matplotlib
. And thanks to Python’s feature enabling easy binding to C/C++, programmers can easily write code in Python while using C++ frameworks like Qt or ROS frameworks.
But do you know how the Python interpreter executes your code under the hood? If you are curious about the implementation of the Python interpreter, here’s a series of articles explaining and discussing the implementation of CPython, an implementation of Python written in C.
In this series of articles, our explanation is based on CPython of version 3.19 and the Ubuntu environment. You can build CPython from source with the commands below.
PyPreConfig
configurations are related to the user environment or the operating system. One of the most important things that PyPreConfig
does is to set the Python memory allocator. Pyconfig
defines runtime configurations such as execution mode specifying the source of the Python code (from a file or stdin
).
Now that we have looked into the flow from typing python
into the terminal to the beginning of the compilation phase of the input Python code, let’s take a look at how CPython conducts lexical and syntax analysis with its lexer and parser in our next article!
MNTE is an ERC20 token initially issued on the battle-tested and energy-efficient Ethereum network. MNTE has also been bridged to the layer 2 Arbitrum One, so it exists on both chains and can be sent…
I know that time is never going back. Even if you have 1 million dollars, you can’t buy it. Appreciate the moments, because life is about being grateful. I remember all my failures, my inability to…
Drake released his 9th studio album through Apple, Tidal and Spotify. The Toronto native infused R&B interludes, with caribbean inspired hits. Dominating the Billboard Hot 100 chart, Drake lands…