Wiki

Clone wiki

pymoult / relinking

#Relinking the functions

The lowlevel.relinking module contains tools for relinking functions and classes in the application.

Proxys

The ProxyManager class handles proxies to a given object. It can create new proxy to that object or reroute them. Every operation on a proxy is applied to the object it points to.

The proxify(obj) function can be used to create aproxy to obj using an instance of ProxyManager.

The rerouteProxy(proxy,obj) function can be used to make proxy point to obj.

Redefining functions

redefineFunction(module,tfunction,nfunction) redefines tfunction from module to its new version nfunction.

Updated