1 SUSPECT #1
import asyncio
async def m():
asyncio.run(asyncio.sleep(0))
asyncio.run(m()) Traceback (most recent call last):
File "lineup.py", line 4, in <module>
asyncio.run(m())
File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
File "lineup.py", line 3, in m
asyncio.run(asyncio.sleep(0))
RuntimeError: asyncio.run() cannot be called from a running event loop 2 SUSPECT #2
import hashlib
h = hashlib.new("bogus_algo_xyz") Traceback (most recent call last):
File "lineup.py", line 2, in <module>
h = hashlib.new("bogus_algo_xyz")
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
ValueError: unsupported hash type bogus_algo_xyz 3 SUSPECT #3
from functools import lru_cache
@lru_cache
def gen():
yield 1
yield 2
print(list(gen()))
print(list(gen())) Traceback (most recent call last):
File "lineup.py", line 8, in <module>
print(list(gen()))
~~~~~~~~~~~^
[Previous line repeated 993 more times]
RecursionError: maximum recursion depth exceeded while calling cached generator 4 SUSPECT #4
import pickle
import threading
pickle.dumps(threading.Lock()) Traceback (most recent call last):
File "lineup.py", line 4, in <module>
pickle.dumps(threading.Lock())
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
TypeError: cannot pickle '_thread.lock' object 5 SUSPECT #5
import threading
lock = threading.Lock()
lock.release() Traceback (most recent call last):
File "lineup.py", line 3, in <module>
lock.release()
RuntimeError: release unlocked lock