This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ammar2
Recipients Barro, ammar2, lys.nikolaou, vstinner
Date 2018-07-16.13:22:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531747347.2.0.56676864532.issue34088@psf.upfronthosting.co.za>
In-reply-to
Content
Hey Lysandros.

Take a look at https://github.com/python/cpython/blob/master/Lib/wave.py#L126-L139

Notice how there's a Chunk made from the `file` argument but then another Chunk created using the previous chunk as a file.

While it might seem like self.size_read is magically changing between the steps, the thing to realize there is that self.file is another chunk and when you step, you're stepping into the seek of another Chunk instance, which has its own self.size_read
History
Date User Action Args
2018-07-16 13:22:27ammar2setrecipients: + ammar2, vstinner, lys.nikolaou, Barro
2018-07-16 13:22:27ammar2setmessageid: <1531747347.2.0.56676864532.issue34088@psf.upfronthosting.co.za>
2018-07-16 13:22:27ammar2linkissue34088 messages
2018-07-16 13:22:27ammar2create