Absolute seeking on a StringIO treats the offset as a character count
regardless of the contents, so given that there is no "pretend it's UTF-8 and
advance a given number of 'bytes'" machinery anyway, there's no reason not to
allow seeking relative to the current location or the end of the 'file'. The
error message is also misleading: "Can't do nonzero cur-relative seeks" even
when the seek is relative to the end.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/python-ideas@python.org/message/SR5XTK7KDIHFT4KCHEV7XFGYFZ335TSQ/
Code of Conduct: http://python.org/psf/codeofconduct/