python
chenxing0407
这个作者很懒,什么都没留下…
展开
-
threadlocal与ThreadPoolExecutor造成的内存泄漏
threadlocal与线程相关,每个线程都会有一份,参考 http://python.jobbole.com/86150/ThreadPoolExecutor构造函数里面有max_workers参数,如果这个参数设置的不好,就有可能造成内存泄漏。示例代码如下:from concurrent.futures import ThreadPoolExecutorimport thre...原创 2018-10-31 10:39:53 · 3211 阅读 · 0 评论 -
python super 用法
super(Return a proxy object that delegates method calls to a parent or sibling class of type. )用来引用父类的方法格式如下: super([type[, object-or-type]]) 设计的时候要保障the method being called by super() need...原创 2018-11-05 15:10:47 · 148 阅读 · 0 评论 -
Python类变量与继承
参考 https://blog.csdn.net/u014734886/article/details/80691402转载 2018-11-18 22:02:16 · 995 阅读 · 0 评论 -
gevent tutorial
ref http://sdiehl.github.io/gevent-tutorial/ https://www.cnblogs.com/buxizhizhoum/p/7448641.html转载 2018-11-18 23:21:38 · 104 阅读 · 0 评论