From fa2554d027a0ba6e5e9905703f33fa9457ff7063 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Tue, 27 Nov 2007 10:40:20 +0000 Subject: 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. --- Lib/test/test_pyclbr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/test_pyclbr.py') 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 -- cgit v1.2.1