Walter Dörwald added the comment:

The requirement that getstate() returns a (buffer, int) tuple has to do with 
the fact that for text streams seek() and tell() somehow have to take the state 
of the codec into account. See 
_pyio.TextIOWrapper.(seek|tell|_pack_cookie|_unpack_cookie).

However I can't remember the exact history of the specification.

----------
nosy: +doerwalter

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12808>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to