[Python-ideas] Re: Allow relative seek on StringIO

2020-01-16 Thread Random832
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 omissio

[Python-ideas] Re: Allow relative seek on StringIO

2020-01-16 Thread Guido van Rossum
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 f