這裏是我的嘗試:如何傳遞一個類的方法deferred.defer的的PARAM在GAE
deferred.defer(class1().method1, class2.method2, arg)
deferred.defer(class1().method1, class2.method2(), arg)
這兩個失敗與錯誤:
Can't pickle <type 'instancemethod'>: it's not found as __builtin__.instancemethod
在另一篇有關如何醃製實例方法,建議Steven Bethard的解決方案:http://bytes.com/topic/python/answers/552476-why-cant-you-pickle-instancemethods(朝向頁面底部)
該代碼已失去其格式,我一直無法成功使用該公司德解決我的延期問題。
你不應該叫這個班。嘗試'class1.method1' – aschmid00