[issue4202] Multiple interpreters and readline module hook functions.

2015-07-02 Thread Eric Snow

Changes by Eric Snow :


--
nosy: +eric.snow
versions: +Python 3.5, Python 3.6 -Python 3.4

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4202] Multiple interpreters and readline module hook functions.

2012-10-26 Thread Berker Peksag

Changes by Berker Peksag :


--
versions:  -Python 2.6, Python 2.7, Python 3.0, Python 3.1, Python 3.2, Python 
3.3, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4202] Multiple interpreters and readline module hook functions.

2012-10-26 Thread Winston451

Changes by Winston451 :


Removed file: http://bugs.python.org/file27725/readline.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4202] Multiple interpreters and readline module hook functions.

2012-10-26 Thread Winston451

Changes by Winston451 :


Added file: http://bugs.python.org/file27727/readline.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4202] Multiple interpreters and readline module hook functions.

2012-10-26 Thread Winston451

Changes by Winston451 :


--
type:  -> behavior
versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 
3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4202] Multiple interpreters and readline module hook functions.

2012-10-26 Thread Winston451

Winston451 added the comment:

I attached a patch that solve the problem

--
keywords: +patch
Added file: http://bugs.python.org/file27725/readline.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4202] Multiple interpreters and readline module hook functions.

2012-10-25 Thread Winston451

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4202] Multiple interpreters and readline module hook functions.

2010-06-16 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

The be an issue, tests with currents interpreters are needed. You may be right, 
but it may be that no one ever uses readline with subinterpreters.

--
nosy: +tjreedy
status: open -> pending
versions:  -Python 2.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4202] Multiple interpreters and readline module hook functions.

2008-10-24 Thread Graham Dumpleton

New submission from Graham Dumpleton <[EMAIL PROTECTED]>:

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.

--
components: Interpreter Core
messages: 75201
nosy: grahamd
severity: normal
status: open
title: Multiple interpreters and readline module hook functions.
versions: Python 2.5, Python 3.0

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com