コード例 #1
0
 def finalize(self):
     gc.notifyPreFinalization()
     comments.append("del " + self.name)
     gc.abortDelayedFinalization(self.toAbort)
     # We manually restore weak references:
     gc.restoreWeakReferences(self.toAbort)
     gc.notifyPostFinalization()
コード例 #2
0
ファイル: test_gc_jy.py プロジェクト: jythontools/jython
 def finalize(self):
     gc.notifyPreFinalization()
     comments.append("del "+self.name)
     gc.abortDelayedFinalization(self.toAbort)
     # We manually restore weak references:
     gc.restoreWeakReferences(self.toAbort)
     gc.notifyPostFinalization()
コード例 #3
0
 def finalize(self):
     gc.notifyPreFinalization()
     comments.append("del " + self.name)
     gc.abortDelayedFinalization(self.toAbort)
     gc.notifyPostFinalization()
コード例 #4
0
ファイル: test_gc_jy.py プロジェクト: jythontools/jython
 def finalize(self):
     gc.notifyPreFinalization()
     comments.append("del "+self.name)
     gc.abortDelayedFinalization(self.toAbort)
     gc.notifyPostFinalization()