agronholm / agronholm/anyio

in py3.8+ the first asyncio.Task object is allocated with the same ID every time

Abierto
#324 16 comentarios 0 reacciones 0 asignados Ver en GitHub
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

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.