[New-bugs-announce] [issue13087] C BufferedReader seek() is inconsistent with UnsupportedOperation for unseekable streams
John O'Connor
report at bugs.python.org
Sun Oct 2 00:32:49 CEST 2011
New submission from John O'Connor <tehjcon at gmail.com>:
The C implementation of BufferedReader.seek() does not throw an UnsupportedOperation exception when its underlying stream is unseekable IF the current buffer can accommodate the seek in memory. It probably saves a few cycles for the seekable streams but, I think currently, it is inconsistent with the _pyio implementation and documentation.
----------
components: IO
files: unseekable.patch
keywords: patch
messages: 144751
nosy: haypo, jcon, pitrou
priority: normal
severity: normal
status: open
title: C BufferedReader seek() is inconsistent with UnsupportedOperation for unseekable streams
type: behavior
versions: Python 3.2, Python 3.3
Added file: http://bugs.python.org/file23287/unseekable.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13087>
_______________________________________
More information about the New-bugs-announce
mailing list