[issue2282] TextIOWrapper.seekable() always returns False
zhen
report at bugs.python.org
Thu Mar 13 05:32:31 CET 2008
New submission from zhen <netzhen at gmail.com>:
The seekable() method of TextIOWrapper always returns False, for it
does't override the seekable method of IOBase class in which just
returns False. But, there is a method named _seekable(self) in
TextIOWrapper(in io.py line 1211):
def _seekable(self):
return self._seekable
which should be seekable(self), and _seekable method is overwrited by
line 1190 in the __init__ method as a bool object:
self._seekable = self._telling = self.buffer.seekable()
----------
components: Library (Lib)
messages: 63494
nosy: netzhen
severity: normal
status: open
title: TextIOWrapper.seekable() always returns False
type: feature request
versions: Python 3.0
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2282>
__________________________________
More information about the Python-bugs-list
mailing list