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 vstinner
Recipients pitrou, serhiy.storchaka, vstinner
Date 2017-05-03.10:32:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493807563.46.0.124017099518.issue30228@psf.upfronthosting.co.za>
In-reply-to
Content
> You could call buffer.seek(0, SEEK_CUR) rather than buffer.tell() for avoiding a system call for readable stream. But this looks as a shamanism too.

Note: Buffered.seek(0, SEEK_CUR) only has a fast-path for readable file: it cannot be used to optimize open(filename, "w") (BufferedWriter.seek() isn't optimized).
History
Date User Action Args
2017-05-03 10:32:43vstinnersetrecipients: + vstinner, pitrou, serhiy.storchaka
2017-05-03 10:32:43vstinnersetmessageid: <1493807563.46.0.124017099518.issue30228@psf.upfronthosting.co.za>
2017-05-03 10:32:43vstinnerlinkissue30228 messages
2017-05-03 10:32:43vstinnercreate