Message75201
Because the readline module uses PyGILState_Ensure() to facilitate triggering
callbacks into Python code, this would make the ability to use the hook
functions incompatible with use in sub interpreters.
If this is the case, then that readline module cannot be used in sub
interpreters should be documented if not already.
Better still, attempts to register hooks from sub interpreters should result in
an exception. Further, when in use, in sub interpreter, callback hooks should
also not be called if defined, because if defined they would be the hooks from
the main interpreter since variables holding the hooks are static C variables
and shared across all interpreters.
This issue derived from reading of code only and not tested in real program. |
|
Date |
User |
Action |
Args |
2008-10-25 02:52:44 | grahamd | set | recipients:
+ grahamd |
2008-10-25 02:52:44 | grahamd | set | messageid: <1224903164.25.0.50876142409.issue4202@psf.upfronthosting.co.za> |
2008-10-25 02:52:42 | grahamd | link | issue4202 messages |
2008-10-25 02:52:42 | grahamd | create | |
|