New submission from John O'Connor <tehj...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue13087>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to