GIL in alternative implementations

Steven D'Aprano steve+comp.lang.python at pearwood.info
Sat May 28 13:05:16 EDT 2011


On Sat, 28 May 2011 09:39:08 -0700, John Nagle wrote:

> Python allows patching code while the code is executing.

Can you give an example of what you mean by this?

If I have a function:


def f(a, b):
    c = a + b
    d = c*3
    return "hello world"*d


how would I patch this function while it is executing?


-- 
Steven



More information about the Python-list mailing list