[issue23093] repr() on detached stream objects fails

Martin Panter report at bugs.python.org
Sat Dec 20 15:19:49 CET 2014


New submission from Martin Panter:

Patch to fix the underlying issue I mentioned in msg230955. After calling detach() on one of the BufferedIOBase wrappers or a TextIOWrapper, most operations will raise an exception. My patch ensures the following operations are still usable, because they are documented and it doesn’t make sense to disable them:

repr(stream)
stream.encoding
stream.errors
stream.line_buffering

----------
components: IO
files: detach-indep.patch
keywords: patch
messages: 232971
nosy: vadmium
priority: normal
severity: normal
status: open
title: repr() on detached stream objects fails
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file37516/detach-indep.patch

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


More information about the Python-bugs-list mailing list