This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: "method-wrapper" objects are difficult to inspect
Type: behavior Stage:
Components: Interpreter Core Versions: Python 3.2, Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: amaury.forgeotdarc, benjamin.peterson, pitrou
Priority: normal Keywords:

Created on 2011-09-01 19:55 by pitrou, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg143349 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2011-09-01 19:55
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__
msg143354 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2011-09-01 20:43
51e27f42beda and friends.
History
Date User Action Args
2022-04-11 14:57:21adminsetgithub: 57088
2011-09-01 20:43:08benjamin.petersonsetstatus: open -> closed
resolution: fixed
messages: + msg143354
2011-09-01 19:55:41pitroucreate