[New-bugs-announce] [issue12879] "method-wrapper" objects are difficult to inspect
Antoine Pitrou
report at bugs.python.org
Thu Sep 1 21:55:41 CEST 2011
New submission from Antoine Pitrou <pitrou at free.fr>:
This is a bit unhelpful:
>>> s = io.StringIO()
>>> s.__getattribute__
<method-wrapper '__getattribute__' of _io.StringIO object at 0x7f118a2997f0>
>>> dir(s.__getattribute__)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: object does not provide __dir__
----------
components: Interpreter Core
messages: 143349
nosy: amaury.forgeotdarc, benjamin.peterson, pitrou
priority: normal
severity: normal
status: open
title: "method-wrapper" objects are difficult to inspect
type: behavior
versions: Python 3.2, Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12879>
_______________________________________
More information about the New-bugs-announce
mailing list