Author grahamd
Recipients grahamd
Date 2008-10-25.02:52:42
SpamBayes Score 8.57907e-10
Marked as misclassified No
Message-id <1224903164.25.0.50876142409.issue4202@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2008-10-25 02:52:44grahamdsetrecipients: + grahamd
2008-10-25 02:52:44grahamdsetmessageid: <1224903164.25.0.50876142409.issue4202@psf.upfronthosting.co.za>
2008-10-25 02:52:42grahamdlinkissue4202 messages
2008-10-25 02:52:42grahamdcreate