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 <rep...@bugs.python.org>
<http://bugs.python.org/issue23093>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to