コード例 #1
0
ファイル: model.py プロジェクト: junion/butlerbot-unstable
 def __init__(self, *args, **kwds):
     Function.__init__(self, *args, **kwds)
     self.ids = {}
     self.code = self.chunks[0].getcode()
     if not self.code and len(self.chunks) > 1 and isinstance(self.chunks[1], TraceForOpcode):
         # First chunk might be missing the debug_merge_point op
         self.code = self.chunks[1].getcode()
     if self.code:
         self.compute_ids(self.ids)
コード例 #2
0
ファイル: model.py プロジェクト: njues/Sypy
 def __init__(self, *args, **kwds):
     Function.__init__(self, *args, **kwds)
     self.ids = {}
     self.code = self.chunks[0].getcode()
     if not self.code and len(self.chunks)>1 and \
            isinstance(self.chunks[1], TraceForOpcode):
         # First chunk might be missing the debug_merge_point op
         self.code = self.chunks[1].getcode()
     if self.code:
         self.compute_ids(self.ids)
コード例 #3
0
ファイル: model.py プロジェクト: pombredanne/pypy
 def __init__(self, *args, **kwds):
     Function.__init__(self, *args, **kwds)
     self.ids = {}
     self.code = self.chunks[0].getcode()
     if self.code:
         self.compute_ids(self.ids)