Antoine Pitrou added the comment: > LZMAFile now uses BufferedReader.peek(). The current implementation seems > appropriate, but I am not comfortable with the current specification in the > documentation, which says it is allowed to not return any useful data.
What do you mean with "useful data"? peek() should always return at least one byte (except on EOF or on non-blocking streams, of course). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23529> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com