diff options
author | Christian Heimes <christian@cheimes.de> | 2007-11-27 10:40:20 +0000 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2007-11-27 10:40:20 +0000 |
commit | fa2554d027a0ba6e5e9905703f33fa9457ff7063 (patch) | |
tree | ee147a943522dcf6b45f05991e1463581a4a0ba5 /Lib/test/test_pyclbr.py | |
parent | 51110d3cf2224de661a63747768fa68d79beb107 (diff) | |
download | cpython-fa2554d027a0ba6e5e9905703f33fa9457ff7063.tar.gz |
Removed the API to create unbound methods and simplified the API for bound methods. The signature is PyMethod_New(func, instance).
Also removed im_class and renamed im_self to __self__ and im_func to __func__. im_class can be substituted with method.__self__.__class__.
I've also updated some parts of the documenation.
Diffstat (limited to 'Lib/test/test_pyclbr.py')
-rw-r--r-- | Lib/test/test_pyclbr.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_pyclbr.py b/Lib/test/test_pyclbr.py index bcb79880d3..b88cb7e90b 100644 --- a/Lib/test/test_pyclbr.py +++ b/Lib/test/test_pyclbr.py @@ -67,7 +67,7 @@ class PyclbrTest(TestCase): if isinstance(obj, MethodType): # could be a classmethod if (not isinstance(classdict[name], ClassMethodType) or - obj.im_self is not oclass): + obj.__self__ is not oclass): return False elif not isinstance(obj, FunctionType): return False |