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
On Hacker News
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Aug 9, 2023 | Swap_8_and_9: A simple import can modify the Python interpreter by ks2048 | 152 | 41 |