During this live coding session we will take a look at the source code of Python 3 (CPython), and learn together how the Python OOP model is implemented using C structures under the hood.
Depending on how fast we go, I hope we will have time to apply this learning. What we'll do is we will build a dynamic C library with a C function that will be called from a Python script and that will manipulate a Python data. This is going to be fun!! :)
Come with a bit of knowledge in C (we will use a TON of C pointers, pointers to pointers & structures) and Python to take the most out of this session, but anyone is more than welcome to join and have fun with us!
If you want to try beforehand to take full advantage of this live session (or video if you watch the replay) you can start here:
- apt-get install python3-dev (assuming you have python 3 on your machine)
- cd /usr/include/python3.8/ (assuming you have python 3.8.x on your machine)
- start reading the header files. We will start with looking at Python lists. Start with listobject.h and go from there!
----------------------
Follow-me on Twitter: https://twitter.com/julienbarbier42
Register to my newsletter: https://www.getrevue.co/profile/julienbarbier42