How to step through CPython

Derrick Joseph (~derrick)


1

Vote

Description:

What ?!!

We have used Python and fell in love with its simplicity and its code readability. We also might have been confused with those spooky corners in the language. But throughout the entire journey we would have been curious on as to how Python pulls off all these amazing feats.

In this this Dev-Sprint we will to go through the Cpython source code, so that the next time we want to appreciate a bit more than the how-tos in Python's documentation, we can step through Python's source code and be amazed at how clean and readable Python's interpreter itself is.

About the Sprint

  1. Setting up your debugger, simple gdb as well as in Eclipse.
  2. Basic walkththrough how the interpreter is spawned.
  3. Take a test case and set a debugger in the CPython source and walk through the code.

Prerequisites:

  • A Linux or Mac machine
    • CPython source cloned from github.
    • The respective toolchain for the operating system.
    • A text editor/ Eclipse.

Speaker Info:

Derrick Joseph has been a Pythonista since 2014 and has experience in building scalable products written end-to-end in Python. Lately he has been taking time to go through CPython source code. He has spoken at PyCon 2017 on scaling Tensorflow model serving using asyncio.

Speaker Links:

  1. LinkedIn
    1. PyCon 2017 Talk

Section: Core Python
Type: DevSprint
Target Audience: Intermediate
Last Updated: