Message1340

Author leouserz
Recipients
Date 2006-12-20.20:41:55
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Well, the method is created in PyMethod _doget.

From altering this line in _doget:
if (__builtin__.issubclass(container.fastGetClass(), im_class))

To:
if (__builtin__.issubclass(container.fastGetClass(), im_class) && im_self == null){

the code moves further along in the test, but bombs here:
verify(repr(C.foo.__get__(C(1))).startswith("<bound method "))

at the last line in methods.  Ill see what the deal is here.


Im trying to think if the == null makes sense as a test.  It guards against the problem, but what else can go wrong. 

leouser
History
Date User Action Args
2008-02-20 17:17:37adminlinkissue1605019 messages
2008-02-20 17:17:37admincreate