Antoine Pitrou added the comment: > My original goal was actually to make response.read(amt) not try to > make multiple read() calls, so that one could have other delimiters > than newline. It is simple for the chunked case, but I don't know > how to bypass it for response.fp, since it is already a buffered > file that has no guaranteed such behaviour.... wait, one can simply > call peek() on it and know how much one can get :)
Or you can use read1()? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19009> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com