ParentFull threaddataking·The paper on copy-and-patch compilation [0] may give you a general idea although they didn't apply their technique to CPython.[0] https://fredrikbk.com/publications/copy-and-patch.pdfView on HN