YoVDO

Monkey-Patching CPython with Ctypes to Conform to Party Doctrine

Offered By: EuroPython Conference via YouTube

Tags

EuroPython Courses Web Development Courses Software Engineering Courses CPython Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the intricacies of CPython internals in this 30-minute EuroPython Conference talk. Dive into a unique challenge of modifying the value of "2 + 2" to equal 5 at runtime using only Python and the ctypes module. Gain insights into the Python data model, CPython compilation process, and execution by the virtual stack machine. Learn about object and type representation in memory, reference counting, and the transformation of Python scripts into abstract syntax trees. Discover how to monkeypatch integer addition without requiring C programming knowledge. The talk covers topics such as peephole optimization, memory protection, and provides an opportunity for questions. Suitable for those interested in understanding the inner workings of CPython and exploring unconventional programming techniques.

Syllabus

Intro
Background
Ctypes
Peephole optimization
Atlantic hiring
Questions
MProtect
What kept you going
Repositories
People Optimizer


Taught by

EuroPython Conference

Related Courses

Porting Python to WebAssembly
CNCF [Cloud Native Computing Foundation] via YouTube
How We Are Making CPython Faster - Past, Present and Future
EuroPython Conference via YouTube
How We Are Supercharging F-Strings in Python 3.12
EuroPython Conference via YouTube
Tales of Python Security
EuroPython Conference via YouTube
Demystifying Python’s Internals - Diving into CPython by Implementing a Pipe Operator
EuroPython Conference via YouTube