Serhiy Storchaka added the comment: Python implementation raises AttributeError,
C implementations of other streams raise ValueError on uninitialized read/write. Therefore I think ValueError is more appropriate for BufferedRWPair too. Revised patch changes exception type and message to conform with other streams, updates test for uninitialized BufferedRWPair and adds tests for other streams. ---------- stage: needs patch -> patch review Added file: http://bugs.python.org/file33668/bufferedio_uninitialized.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17671> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com