[issue44604] [Enhancement] Asyncio task decorator to provide functionality similar to dask's delayed interface

2021-07-11 Thread Aritn Sarraf
New submission from Aritn Sarraf : For those not familiar, the dask delayed interface allows a user to define a DAG through a functional invocation interface. Dask docs here: https://docs.dask.org/en/latest/delayed.html Another example of this kind of interface is airflow's new TaskFlo

[issue43929] Raise on threading.Event.__bool__ due to ambiguous nature

2021-04-24 Thread Aritn Sarraf
Aritn Sarraf added the comment: Understood. Thanks both, for taking the time to look. -- ___ Python tracker <https://bugs.python.org/issue43929> ___ ___ Pytho

[issue43929] Raise on threading.Event.__bool__ due to ambiguous nature

2021-04-24 Thread Aritn Sarraf
Aritn Sarraf added the comment: Hi Steve, a couple things to preface my following comment. (1) Didn't mean to suggest that the current behavior is a bug. I don't think it is a bug, rather that it can easily lead to bugs. (2) Sorry for tagging the previous versions, I'm not fa

[issue43929] Raise on threading.Event.__bool__ due to ambiguous nature

2021-04-24 Thread Aritn Sarraf
New submission from Aritn Sarraf : I'll sometimes find myself accidentally doing something like this (especially after a long break from using the threading module): ``` stop_thread = threading.Event() ... while not stop_thread: # bug - bool(stop_thread) will always evaluate to