[issue46956] TextIOWrapper.seek silently wraps around on very large offsets

2022-03-08 Thread Zsolt Cserna
Change by Zsolt Cserna : -- nosy: +csernazs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46956] TextIOWrapper.seek silently wraps around on very large offsets

2022-03-08 Thread László Vaskó
New submission from László Vaskó : `f.seek()` method may silently wrap around at offsets greater than `1 << 64` (on AMD64) but return the original seek offset: $ strace -e lseek python3 [...] bunch of strace output >>> f = open("/tmp/whatever", "w") [...] bunh of strace output