基本上cProfile模塊跳過一些功能,當我運行它時,正常的配置文件模塊產生這個錯誤。python c配置文件和配置文件模型跳過功能
The debugged program raised the exception unhandled AssertionError
"('Bad call', ('objects/controller/StageController.py', 9, '__init__'), <frame object at 0x9bbc104>, <frame object at 0x9bb438c>, <frame object at 0x9bd0554>, <frame object at 0x9bcf2f4>)"
File: /usr/lib/python2.6/profile.py, Line: 301
我做了所有的搜索,我找不到任何東西。我如何讓他們正常工作?
@ yk4ever
StageController.py類開始是這樣的:
class StageControl(ObjectControl):
def __init__(self, canvas_name):
ObjectControl.__init__(self, canvas_name,"stage_object")
self.model = StageModel()
self.variables()
self.make_stage()
self.overrides()
「壞call」 錯誤上面似乎不喜歡這類
你能提供代碼樣本,特別是呼籲那些功能呢? – yk4ever 2009-11-06 15:48:28