code: def kwds(self):
          '''Return all attributes as keywords dict.
          '''
           # no dict(refs=self.refs, ..., kind=self.kind) in Python 2.0
          return _kwds(base=self.base, item=self.item,
                       leng=self.leng, refs=self.refs,
                       both=self.both, kind=self.kind, type=self.typef kwds(self):
          '''Return all attributes as keywords dict.
          '''
           # no dict(refs=self.refs, ..., kind=self.kind) in Python 2.0
          return _kwds(base=self.base, item=self.item,
                       leng=self.leng, refs=self.refs,
                       both=self.both, kind=self.kind, type=self.type)
docs: Return all attributes as keywords dict.