๐Ÿ๐Ÿ”จ Oh, look at you, Mr. #Python Wizard, magically monkey-patching #code at runtime like it's a circus act! ๐ŸŽฉโœจ Because who doesn't love trading #security for a few moments of smug brilliance? ๐Ÿ™„
https://ericmjl.github.io/blog/2025/8/23/wicked-python-trickery-dynamically-patch-a-python-functions-source-code-at-runtime/ #MonkeyPatch #SmugBrilliance #CircusAct #HackerNews #ngated
Wicked Python trickery - dynamically patch a Python function's source code at runtime

Luckily, two programs were set to #log progress and the #code could be #patched to skip previously computed steps.

A third program was not so lucky. None of the work is important, but losing it, or even figuring out how to #monkeyPatch it, is annoying.