Showing content from http://mail.python.org/pipermail/python-dev/attachments/20140308/bf89f064/attachment.py below:
import asyncio import gc import sys class MyObject: def __del__(self): print("DELETE OBJECT") @asyncio.coroutine def func(fut): obj = MyObject() try: raise ValueError() except Exception as err: fut.set_exception(err) def collect(): print("gc.collect") gc.collect() def stop(): print("stop!") loop.stop() fut = asyncio.Future() asyncio.Task(func(fut)) loop = asyncio.get_event_loop() loop.call_later(2, collect) loop.call_later(4, stop) loop.run_forever() loop.close() print("exit")
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4