- くだすれPython(超初心者用) その28©2ch.net
123 :デフォルトの名無しさん[]:2015/11/23(月) 13:49:59.03 ID:dxOsyiE1 - 2系と3系が入り乱れてるのに人気って2020年以降どうなっちゃうの
|
- Pythonのお勉強 Part51 [転載禁止]©2ch.net
82 :デフォルトの名無しさん[]:2015/11/23(月) 18:30:45.26 ID:dxOsyiE1 - ハイパフォーマンスPythonの届いて読んでるけど2.7系でよかった
|
- くだすれPython(超初心者用) その28©2ch.net
138 :デフォルトの名無しさん[]:2015/11/23(月) 21:32:24.44 ID:dxOsyiE1 - httplib2触ってみたけどクッキー対応してないのかよ
|
- くだすれPython(超初心者用) その28©2ch.net
140 :デフォルトの名無しさん[]:2015/11/23(月) 22:17:45.13 ID:dxOsyiE1 - requestsメモリーリークしてるよね?
import gc gc.set_debug(gc.DEBUG_LEAK) gc.disable() r = requests.get('http://www.yahoo.com') print "到達不能オブジェクト数:{0}".format(gc.collect()) print "到達不能オブジェクト:{0}".format(gc.garbage) ↓↓↓↓↓↓ 結果 ↓↓↓↓↓↓ gc: collectable <list 0x109756368> gc: collectable <list 0x109ccd638> gc: collectable <list 0x109ccddd0> gc: collectable <list 0x109d132d8> gc: collectable <list 0x109d2a3b0> 到達不能オブジェクト数:5 到達不能オブジェクト:[[[[[...],...(略 gc: collectable <list 0x109ccccb0> gc: collectable <list 0x1096a93f8> gc: collectable <list 0x109ccd998> gc: collectable <list 0x109d2a488> gc: collectable <_cffi_backend.CDataOwnGC 0x109d3f0a8> gc: collectable <_VerifyHelper 0x109d1eb50> gc: collectable <tuple 0x109d3f050> gc: collectable <dict 0x109d3d4b0> gc: collectable <function 0x109d21938> gc: collectable <list 0x109c4ac68> gc: collectable <tuple 0x109cfe6c8> gc: collectable <cell 0x109d20830> gc: collectable <cell 0x109d207f8>
|
- くだすれPython(超初心者用) その28©2ch.net
143 :デフォルトの名無しさん[]:2015/11/23(月) 23:28:47.82 ID:dxOsyiE1 - でも結局はセッションプールを解放しなければメモリーリークするってことだよね?
|