code: def clone(self):
          
  
          p = type(self)(self.id)
          p.hooks = list(self.hooks)
          p.instance = self.instance
          return p
docs: Duplicate a Pangler.
  
          Returns a copy of this Pangler, with all the same state. Both will be
          bound to the same instance and have the same `id`, but new hooks will
          not be shared.