[New-bugs-announce] [issue26175] Fully implement IOBase abstract on SpooledTemporaryFile

Gary Fernie report at bugs.python.org
Thu Jan 21 16:54:34 EST 2016


New submission from Gary Fernie:

SpooledTemporaryFile does not fully satisfy the abstract for IOBase.
Namely, `seekable`, `readable`, and `writable` are missing.

This was discovered when seeking a SpooledTemporaryFile-backed lzma file.
You may quickly repro this:
`lzma.open(SpooledTemporaryFile()).seek(0)`

----------
files: fix-SpooledTemporaryFile-IOBase-abstract.patch
keywords: patch
messages: 258769
nosy: Gary Fernie
priority: normal
severity: normal
status: open
title: Fully implement IOBase abstract on SpooledTemporaryFile
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file41685/fix-SpooledTemporaryFile-IOBase-abstract.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26175>
_______________________________________


More information about the New-bugs-announce mailing list