New submission from Erez Sh <ere...@gmail.com>: In xmlrpclib, a ServerProxy initialized with verbose=True produces an occasionally jumbled-up output, due to a multiple threads writing to stdout without synchronizing.
I noticed this happening only for incoming data (at line 1461: print "body:", repr(data) ). I seem to have fixed it locally by accumulating all the data and printing it (within a lock) outside of the send/recv loop. It is a useful feature for debugging and logging the 'raw' communication, but virtually useless if one can't rely on its output. ---------- components: Library (Lib) messages: 128141 nosy: Erez.Sh priority: normal severity: normal status: open title: xmlrpclib.ServerProxy with verbosity produces bad output versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11142> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com