[issue25849] files, opened in unicode (text): write() returns symbols count, but seek() expect offset in bytes
Martin Panter
report at bugs.python.org
Wed Dec 16 18:27:16 EST 2015
Martin Panter added the comment:
I think changing the TextIOBase API would be hard to do if you want to keep compatibility with existing code. I agree that encoding the position to a number and back seems like a bad design, but I doubt it is worth changing it at this point.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25849>
_______________________________________
More information about the Python-bugs-list
mailing list