This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FunctionMeta(type): | |
class RpcWrapper(object): | |
def __init__(self,name): | |
self.name = name | |
def __call__(self): | |
print(self.name) | |
def __new__(cls, clsname, superclasses,attributedict): | |
print("clsname: ", clsname) | |
print("superclasses: ", superclasses) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
/* | |
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function | |
createElement(tagName) | |
createElement(tagName, options) | |
https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement | |
*/ | |
console.log("monkey patch start"); | |
var old_CreateElement = Document.prototype.createElement | |
function new_CreateElement() { |
OlderNewer