in py3.8+ the first asyncio.Task object is allocated with the same ID every time
Abierto
asyncio
bug
- Lenguaje dominante
- Python
- Estrellas
- 2.5k
- Forks
- 260
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 17
Descripción
This is a problem in anyio because TaskInfo's `__eq__` goes on to compare dead object IDs
```python
>>> async def current_task():
... return anyio.get_current_task()
...
>>> t = anyio.run(current_task)
>>> u = anyio.run(current_task)
>>> t == u
True
>>> t.id == u.id
True
```
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.