[issue25849] files, opened in unicode (text): write() returns symbols count, but seek() expect offset in bytes

Марк Коренберг report at bugs.python.org
Wed Dec 16 17:40:14 EST 2015


Марк Коренберг added the comment:

Well,  03e61104f7a2 adds good description, why not to enforce checks instead of saying that some values are unsupported ?

Also, idea in returning special object instance from tell(), this object should incapsulate byte offset. And allow for the seek() either such objects or zero.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25849>
_______________________________________


More information about the Python-bugs-list mailing list