[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 _

[issue12861] PyOS_Readline uses single lock

2011-09-02 Thread Albert Zeyer
Albert Zeyer added the comment: You might have opened several via `openpty`. I am doing that here: https://github.com/albertz/PyTerminal -- ___ Python tracker ___ _

[issue12861] PyOS_Readline uses single lock

2011-09-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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

[issue12861] PyOS_Readline uses single lock

2011-08-31 Thread Albert Zeyer
Albert Zeyer 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

[issue12861] PyOS_Readline uses single lock

2011-08-30 Thread Albert Zeyer
Albert Zeyer 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

[issue12861] PyOS_Readline uses single lock

2011-08-30 Thread Albert Zeyer
New submission from Albert Zeyer : 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 differen