Ken Schutte personal blog

Swap_8_and_9: A simple import can modify the Python interpreter

Summary : I present a simple Python module that after imported, changes the values of two integers. The purpose is (a) show that modules can do harmful and unexpected things, (b) show an example of how to write a simple module in C, and (c) introduce a few things in CPython source code.
Points
152
HN comments
41
Submissions
1
Cited by
0 commenters

Software Engineering2023

On Hacker News

SubmittedTitle on HNPointsComments
Aug 9, 2023Swap_8_and_9: A simple import can modify the Python interpreter by ks204815241

More from Ken Schutte

All 4 posts →

Related posts from the same era