STINNER Victor added the comment:

> 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).

----------

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

Reply via email to