Skip to content

Instantly share code, notes, and snippets.

View zhyq0826's full-sized avatar

三月沙 zhyq0826

View GitHub Profile
@zhyq0826
zhyq0826 / futures_test.py
Last active August 29, 2015 14:27 — forked from lbolla/futures_test.py
Tornado and concurrent.futures
from concurrent.futures import ThreadPoolExecutor
from functools import partial, wraps
import time
import tornado.ioloop
import tornado.web
EXECUTOR = ThreadPoolExecutor(max_workers=4)
@zhyq0826
zhyq0826 / gist:b2a43514cfd76d433078
Created August 6, 2015 07:41
python pickle test error
S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.testtestS'test'\np1\n.S'test'\np1\n.S
'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1
\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'
\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S't
est'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n
.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\np1\n.S'test'\n
p1\n.S'test'\np1\n.S'test'\np1\n.