[Python-ideas] Re: Deprecation APIs and language tooling

2021-07-12 Thread Blue
This already exists as `warnings.DeprecationWarning` see the documentation here: https://docs.python.org/3/library/exceptions.html#DeprecationWarning That said, the fact that this is hidden by default [as seen here]( https://docs.python.org/3/library/warnings.html).. > Base category for warnings

[Python-ideas] Re: Add timeout parameter to Synchronization Primitives in asyncio

2021-09-19 Thread Blue
This is already supported with [`asyncio.wait_for()`]( https://docs.python.org/3/library/asyncio-task.html#asyncio.wait_for). For example: `await asyncio.wait_for(asyncio.Event().wait(), timeout=60)` ___ Python-ideas mailing list -- [email protected]