I hereby claim:
- I am jonafato on github.
- I am jonafato (https://keybase.io/jonafato) on keybase.
- I have a public key whose fingerprint is F5E2 D103 9102 27A8 2A25 8DAC 8BAF 42A9 83D5 6C02
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import ctypes | |
import inspect | |
from parse import parse | |
def fparse(template, string): | |
parent_frame = inspect.currentframe().f_back | |
parent_frame.f_locals.update(parse(template, string).named) | |
ctypes.pythonapi.PyFrame_LocalsToFast( | |
ctypes.py_object(parent_frame), | |
ctypes.c_int(0), |
I think this is a bug. Under 3.4 - 3.6, this works just fine. However, in 3.7.0 and 3.8.0a0 (current master; 86bfed372b81b8111a56a3311d537566d5df7f61), I get the following on the loop.close()
call:
import asyncio
from concurrent.futures import ProcessPoolExecutor
import os
loop = asyncio.get_event_loop_policy().new_event_loop()
loop.set_default_executor(ProcessPoolExecutor())
future = loop.run_in_executor(None, os.getpid)