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

Method get_pyos_inputhook_as_func

IPython/lib/inputhook.py:140–146  ·  view source on GitHub ↗

DEPRECATED since IPython 5.0 Return the current PyOS_InputHook as a ctypes.PYFUNCYPE.

(self)

Source from the content-addressed store, hash-verified

138 return ctypes.c_void_p.in_dll(ctypes.pythonapi,"PyOS_InputHook")
139
140 def get_pyos_inputhook_as_func(self):
141 """DEPRECATED since IPython 5.0
142
143 Return the current PyOS_InputHook as a ctypes.PYFUNCYPE."""
144 warn("`get_pyos_inputhook_as_func` is deprecated since IPython 5.0 and will be removed in future versions.",
145 DeprecationWarning, stacklevel=2)
146 return self.PYFUNC.in_dll(ctypes.pythonapi,"PyOS_InputHook")
147
148 def set_inputhook(self, callback):
149 """DEPRECATED since IPython 5.0

Callers 2

set_inputhookMethod · 0.95
clear_inputhookMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected