def dup(self, other=None, **kwds):
        '''Duplicate attributes of dict or other typedef.
        '''
        if other is None:
            d = _dict_typedef.kwds()
        else:
            d = other.kwds()
        d.update(kwds)
        self.reset(**d)
Duplicate attributes of dict or other typedef.
        
recipes/Python/546530_Size_of_Python_objects_revised/recipe-546530.py