基本上,当我运行 cProfile 模块时会跳过某些函数,而正常的 profile 模块则会产生这个错误。
我已经做了所有搜索,但是找不到任何东西。我该如何使它们正常工作?
@ yk4ever StageController.py类的开头是这样的:
上面的“Bad call”错误似乎不喜欢这个类。
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()
上面的“Bad call”错误似乎不喜欢这个类。