New submission from Antoine Pitrou <pit...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue12879>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to