Michiel> 1) Currently, there's only one PyOS_InputHook. So we're stuck
Michiel> if we find that some other extension module already set
Michiel> PyOS_InputHook. An easy solution would be to have an
Michiel> PyOS_AddInputHook/PyOS_RemoveInputHook API, and let Python
Michiel> maintain a list of input hooks to be called.
I think we've come more-or-less full circle to the point where I jumped onto
this spinning thread. If there is only a single input hook function, you
probably need to write a slightly higher level module that manages the hook.
See sys.exitfunc and the atexit module for a simple example.
Skip
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com