You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
asyncio.iscoroutinefunction should be deprecated in favor of inspect.iscoroutinefunction, we don't need two different functions to do the same thing. I propose to deprecate asyncio.iscoroutinefunction because IMO these introspection functions don't belong to asyncio but more to inspect module. It will be deprecated in Python 3.14 and scheduled for removal in Python 3.16.
If you get the deprecation error and want to support Python < 3.12, you may need to still use asyncio.iscoroutinefunction conditionally for backward compatibility because before #94050 merged into 3.12 (and only some 3.10 and 3.11 releases) the functions hadn't been equivalent
Activity
Wulian233 commentedon Aug 9, 2024
See #94923 , maybe you can review it :)
Eclips4 commentedon Aug 9, 2024
Looks like an duplicate of #94912
kumaraditya303 commentedon Aug 9, 2024
No it isn't, in this issue we are just deprecating it not making an alias.
gh-122858: Deprecate `asyncio.iscoroutinefunction` (#122875)
pythongh-122858: Deprecate `asyncio.iscoroutinefunction` (python#122875)
illia-v commentedon Nov 9, 2024
If you get the deprecation error and want to support Python < 3.12, you may need to still use
asyncio.iscoroutinefunctionconditionally for backward compatibility because before #94050 merged into 3.12 (and only some 3.10 and 3.11 releases) the functions hadn't been equivalentReplace asyncio.iscoroutinefunction with inspect
Replace asyncio.iscoroutinefunction with inspect
Implement the remaining Audit Logs functionality (#515)