[issue4202] Multiple interpreters and readline module hook functions.

Winston451 report at bugs.python.org
Fri Oct 26 01:23:50 CEST 2012


Winston451 added the comment:

Hi,

I'm currently developping an application which runs sub interpreters in threads (one sub interpreter per thread). When I try to use readline completion in these sub interpreters it fails because it's not possible to import the "keyword" module (PyEval_GetRestricted() returns true). I think it is due to the fact that readline's on_completion() use PyGILState_Ensure(). It should be possible to use PyEval_RestoreThread with _PyOS_ReadlineTState instead.

----------
nosy: +Winston451
status: pending -> open

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4202>
_______________________________________


More information about the Python-bugs-list mailing list