bundles / IPython 9.5.0 / IPython / core / async_helpers
module
IPython.core.async_helpers
Members
-
_AsyncIOProxy -
_AsyncIORunner -
_curio_runner -
_pseudo_sync_runner -
_should_be_async -
_trio_runner -
get_asyncio_loop
Summary
Async helper function that are invalid syntax on Python 3.5 and below.
Extended Summary
This code is best effort, and may have edge cases not behaving as expected. In particular it contain a number of heuristics to detect whether code is effectively async and need to run in an event loop or not.
Some constructs (like top-level return, or yield) are taken care of explicitly to actually raise a SyntaxError and stay as close as possible to Python semantics.
Additional content
Async helper function that are invalid syntax on Python 3.5 and below.
This code is best effort, and may have edge cases not behaving as expected. In particular it contain a number of heuristics to detect whether code is effectively async and need to run in an event loop or not.
Some constructs (like top-level return, or yield) are taken care of explicitly to actually raise a SyntaxError and stay as close as possible to Python semantics.
Aliases
-
IPython.core.async_helpers