def kwds(self):
        '''Return all attributes as keywords dict.
        '''
        return dict(base=self.base, item=self.item,
                    alen=self.alen, refs=self.refs,
                    both=self.both, kind=self.kind,
                    type=self.type, vari=self.vari)
Return all attributes as keywords dict.
        
recipes/Python/546530_Size_of_Python_objects_revised/recipe-546530.py