Lysandros Nikolaou <lisandros...@gmail.com> added the comment:

Upon checking to see where the RuntimeError is coming from, I noticed that 
there is some notorious behaviour in chunk.py. If one runs python with the 
exact same parameters as Jussi Judin did in their first case and after stepping 
through the call stack until Chunk/skip is reached, there is a call to 
Chunk/seek. On the time of the call size_read has the value 16, whereas within 
the seek method it has the value 28. Is this intended? If so, where is that 
implemented? I cannot figure out why this is happening. 

The following is my pdb output.

> cpython/Lib/chunk.py(160)skip()
-> self.file.seek(n, 1)
(Pdb) p self.size_read
16
(Pdb) s
--Call--
> cpython/Lib/chunk.py(98)seek()
-> def seek(self, pos, whence=0):
(Pdb) p self.size_read
28

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34088>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to