@@ -392,7 +392,7 @@ Eventloop integration mechanism
392
392
CPython / readline
393
393
------------------
394
394
395
- The Python C API provides a hook, :c:var : `PyOS_InputHook `, to register a
395
+ The Python C API provides a hook, :c:data : `PyOS_InputHook `, to register a
396
396
function to be run "The function will be called when Python's
397
397
interpreter prompt is about to become idle and wait for user input
398
398
from the terminal.". This hook can be used to integrate a second
@@ -402,12 +402,11 @@ event queue, run the main loop for a short fixed amount of time, or
402
402
run the event loop until a key is pressed on stdin.
403
403
404
404
405
- Matplotlib does not currently do any management of
406
- :c:var: `PyOS_InputHook ` due to the wide range of ways that Matplotlib
407
- is used. This management is left to downstream libraries -- either
408
- user code or the shell. Interactive figures, even with matplotlib in
409
- 'interactive mode', may not work in the vanilla python repl if an
410
- appropriate :c:var: `PyOS_InputHook ` is not registered.
405
+ Matplotlib does not currently do any management of :c:data: `PyOS_InputHook ` due
406
+ to the wide range of ways that Matplotlib is used. This management is left to
407
+ downstream libraries -- either user code or the shell. Interactive figures,
408
+ even with matplotlib in 'interactive mode', may not work in the vanilla python
409
+ repl if an appropriate :c:data: `PyOS_InputHook ` is not registered.
411
410
412
411
Input hooks, and helpers to install them, are usually included with
413
412
the python bindings for GUI toolkits and may be registered on import.
0 commit comments