[issue12861] PyOS_Readline uses single lock

2020-06-25 Thread STINNER Victor


STINNER Victor  added the comment:

No activity for 9 years, I close the issue as out of date.

--
nosy: +vstinner
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue12861] PyOS_Readline uses single lock

2011-09-02 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

Well, readline is supposed to be used with a console, and there is only one 
usually.  Why would you want to use readline from multiple threads?

--
nosy: +amaury.forgeotdarc

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



[issue12861] PyOS_Readline uses single lock

2011-09-02 Thread Albert Zeyer

Albert Zeyer alb...@googlemail.com added the comment:

You might have opened several via `openpty`.

I am doing that here: https://github.com/albertz/PyTerminal

--

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



[issue12861] PyOS_Readline uses single lock

2011-08-31 Thread Albert Zeyer

Albert Zeyer alb...@googlemail.com added the comment:

Even more problematic: The readline lib itself is absolutely not designed in a 
way to be used from multi threads at once.

--

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



[issue12861] PyOS_Readline uses single lock

2011-08-30 Thread Albert Zeyer

New submission from Albert Zeyer alb...@googlemail.com:

In Parser/myreadline.c PyOS_Readline uses a single lock (`_PyOS_ReadlineLock`). 
I guess it is so that we don't have messed up stdin reads. Or are there other 
technical reasons?

However, it should work to call this function from multiple threads with 
different/independent `sys_stdin` / `sys_stdout`.

--
messages: 143229
nosy: Albert.Zeyer
priority: normal
severity: normal
status: open
title: PyOS_Readline uses single lock
versions: Python 2.7

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



[issue12861] PyOS_Readline uses single lock

2011-08-30 Thread Albert Zeyer

Albert Zeyer alb...@googlemail.com added the comment:

Ok, it seems that the Modules/readline.c implementation is also not really 
threadsafe... (Whereby, I think it should be.)

--

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