def rewrap(self, **kwargs):
        """Inplace constructor. Depending on `self.inplace`, rewrap `obj`, or
        just update internal vars, possibly including the `obj`.
        """
        if self.inplace:
            for key, val in kwargs.items():
                setattr(self, key, val)
            return self
        else:
            for key in ['obj', 'default', 'skipmissing', 'inplace', 'empty']:
                kwargs.setdefault(key, getattr(self, key))
            return pluckable(**kwargs)
def rewrap ( self , ** kwargs ) : if self . inplace : for key , val in kwargs . items ( ) : setattr ( self , key , val ) return self else : for key in [ 'obj' , 'default' , 'skipmissing' , 'inplace' , 'empty' ] : kwargs . setdefault ( key , getattr ( self , key ) ) return pluckable ( ** kwargs )
Inplace constructor. Depending on `self.inplace`, rewrap `obj`, or
        just update internal vars, possibly including the `obj`.