[issue38595] io.BufferedRWPair doc warning may need clarification

2019-10-25 Thread Ryan Govostes
Ryan Govostes added the comment: The origin of this warning involves interleaving read and write operations, and was added here: https://bugs.python.org/issue12213 I'm not sure if it applies to sockets, pipes, etc. though. The pySerial documentation advises using io.BufferedRWPair(x, x) wher

[issue38595] io.BufferedRWPair doc warning may need clarification

2019-10-25 Thread Ryan Govostes
New submission from Ryan Govostes : The documentation for the io.BufferedRWPair class gives this warning: > BufferedRWPair does not attempt to synchronize accesses to its underlying raw > streams. You should not pass it the same object as reader and writer; use > BufferedRandom instead. I ha