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
| import threading | |
| from tornado import gen | |
| from tornado.concurrent import Future | |
| from tornado.ioloop import IOLoop | |
| fut = Future() | |
| #print("in main:", fut, id(getattr(fut, '_loop', None))) |
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
| import gc | |
| import pprint | |
| import types | |
| import weakref | |
| import asyncio | |
| from asyncio import tasks | |
| from tornado import gen | |
| from tornado.ioloop import IOLoop |
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
| import itertools | |
| import random | |
| def mytee1(xs, n): | |
| last = [None, None] | |
| def gen(it, mylast): | |
| nonlocal last |
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
| import gc | |
| import sys | |
| import time | |
| import itertools | |
| import weakref | |
| import concurrent.futures | |
| import tracemalloc | |
| import ctypes | |
OlderNewer