MCPcopy Create free account
hub / github.com/ipython/ipython / compare

Method compare

IPython/core/interactiveshell.py:3314–3316  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

3312 else:
3313 if sys.version_info > (3, 8):
3314 def compare(code):
3315 is_async = (inspect.CO_COROUTINE & code.co_flags == inspect.CO_COROUTINE)
3316 return is_async
3317 else:
3318 def compare(code):
3319 return _async

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected