[New-bugs-announce] [issue12861] PyOS_Readline uses single lock
report at bugs.python.org
Tue Aug 30 19:15:55 CEST 2011
New submission from Albert Zeyer <albzey at 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`.
title: PyOS_Readline uses single lock
versions: Python 2.7
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce