code: def set(self, safe_len=False, **kwds):
          '''Set one or more attributes.
          '''
          if kwds:  # double check
              d = self.kwds()
              d.update(kwds)
              self.reset(**d)
          if safe_len and self.item:
              self.leng = _lef set(self, safe_len=False, **kwds):
          '''Set one or more attributes.
          '''
          if kwds:  # double check
              d = self.kwds()
              d.update(kwds)
              self.reset(**d)
          if safe_len and self.item:
              self.leng = _len
docs: Set one or more attributes.