code: def bind(self, environment):
          
          rv = object.__new__(self.__class__)
          rv.__dict__.update(self.__dict__)
          rv.environment = environment
          return rv
docs: Create a copy of this extension bound to another environment.