摘要:
简介 定义 以下是维基百科对猴子补丁的定义 The term monkey patch refers to dynamic modifications of a class or module at runtime, motivated by the intent to patch existing 阅读全文
摘要:
monkey patch指的是在运行时动态替换,一般是在startup的时候. 用过gevent就会知道,会在最开头的地方gevent.monkey.patch_all();把标准库中的thread/socket等给替换掉.这样我们在后面使用socket的时候可以跟平常一样使用,无需修改任何代码,但 阅读全文