INNER CODE UNIT · Python
__repr__
theyosh/TerrariumPI · contrib/pipes/__init__.py:99
def __repr__(self):
"""t.__repr__() implements repr(t)."""
return "<Template instance, steps=%r>" % (self.steps,)
def reset(self):
"""t.reset() restores a pipeline template to its initial state."""
self.steps = []
def clone(self):
"""t.clone() returns a new pipeline template with identical
initial state as the current one."""
t = Template()
t.steps = self.steps[:]
t.debugging = self.debugging
return t
def debug(self, flag):
"""t.debug(flag) turns debugging on or off."""