On Thu, Jan 16, 2020, at 23:07, Guido van Rossum wrote:
> Sounds like you should just submit a bug report (and a PR with a fix if 
> you feel up to it). Since a relative seek to position p is typically 
> just implemented as an absolute seek to position f.tell()+p, this looks 
> like an odd omission, and I can't remember a reason for it. Looking at 
> the code, the fix looks pretty easy -- update _io_StringIO_seek_impl() 
> in Modules/_io/stringio.c.

I guess my instinct was to post here first in case there was (or in case 
someone thought there was) a reason, since it's certainly something that's 
being specifically disallowed in the code rather than a consequence of 
something that's not checked properly.

Submitted as issue 39365.
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/KRXGIC4HACJQRRZ4VLT6CRASQDVYJCUF/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to