[New-bugs-announce] [issue30554] Inaccessible attribute characters_written on OSError instances

Igor Kozyrenko (ikseek) report at bugs.python.org
Fri Jun 2 12:01:56 EDT 2017


New submission from Igor Kozyrenko (ikseek):

If I enumerate attributes on OSError instance with dir
dir(OSError())
I see an 'characters_written' attribute (which is supposed to be defined on BlockingIOError according to docs).
If I try to access it
getattr(OSError(), 'characters_written')
I get an AttributeError

----------
components: Library (Lib)
messages: 295030
nosy: Igor Kozyrenko (ikseek)
priority: normal
severity: normal
status: open
title: Inaccessible attribute characters_written on OSError instances
type: behavior
versions: Python 3.6

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


More information about the New-bugs-announce mailing list