]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Added proper reflection on instances of <type 'method-wrapper'>, e.g.
authorArmin Rigo <arigo@tunes.org>
Mon, 7 Nov 2005 08:38:00 +0000 (08:38 +0000)
committerArmin Rigo <arigo@tunes.org>
Mon, 7 Nov 2005 08:38:00 +0000 (08:38 +0000)
commitc6686b7c7e0a10e7dc472a0256a9823c4d7136f2
tree9acfea79c7c8617efa89d3ef74417e8308a6ca69
parent64b414ad4c7e28eef515aff25088542f09c4d2a0
Added proper reflection on instances of <type 'method-wrapper'>, e.g.
'[].__add__', to match what the other internal descriptor types provide:
'__objclass__' attribute, '__self__' member, and reasonable repr and
comparison.

Added a test.
Lib/test/test_descr.py
Objects/descrobject.c