![](https://secure.gravatar.com/avatar/d4a7fc39d443767abbe16fc219bf3910.jpg?s=120&d=mm&r=g)
March 4, 2013
3:21 p.m.
On 5 March 2013 10:12, Antoine Pitrou <solipsis@pitrou.net> wrote:
The problem is that sys.stdin and sys.stdout default to TextIOWrappers, and handling protocols requires bytes, so having a way to drop down to bytes is very convenient.
Why do you want to drop to bytes *after* having already buffered stuff in sys.{stdin,stdout}?
I don't (when reading), and for my purposes having the drop-down process error when reads have been done at thetext layer would be fine. Writing is more ambiguous (for me, not as a problem statement), but also works fine today so nothing is needed from my perspective. -Rob -- Robert Collins <rbtcollins@hp.com> Distinguished Technologist HP Cloud Services