MCPcopy Create free account
hub / github.com/ActiveState/code / __init__

Method __init__

recipes/Python/578138_gprof2dotpy/recipe-578138.py:239–242  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

237 """A cycle made from recursive function calls."""
238
239 def __init__(self):
240 Object.__init__(self)
241 # XXX: Do cycles need an id?
242 self.functions = set()
243
244 def add_function(self, function):
245 assert function not in self.functions

Callers

nothing calls this directly

Calls 2

setFunction · 0.50
__init__Method · 0.45

Tested by

no test coverage detected