Message 173809 - Python tracker
Message173809
| Author | Winston451 |
|---|---|
| Recipients | Winston451, grahamd, terry.reedy |
| Date | 2012-10-25.23:23:49 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1351207430.22.0.76306512133.issue4202@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2012-10-25 23:23:50 | Winston451 | set | recipients: + Winston451, terry.reedy, grahamd |
| 2012-10-25 23:23:50 | Winston451 | set | messageid: <1351207430.22.0.76306512133.issue4202@psf.upfronthosting.co.za> |
| 2012-10-25 23:23:50 | Winston451 | link | issue4202 messages |
| 2012-10-25 23:23:49 | Winston451 | create | |