(self)
Reset the match.

        Parameters are set to their default values, any flags are cleared.
Reset the match.
Reset the match .
def reset(self):
        """Reset the match.

        Parameters are set to their default values, any flags are cleared."""
        ct.memset(ct.byref(self._match_buf), 0, self.size)
        self._update_pointers()
        m = self._ptr[0]
        m.u.match_size = self.size
        m.u.user.revision = self._revision
        if self._module.init:
            self._module.init(self._ptr)
        self._module.mflags = 0
        udata_size = getattr(self._module, 'udata_size', 0)
        if udata_size > 0:
            udata_buf = (ct.c_ubyte * udata_size)()
            self._module.udata = ct.cast(ct.byref(udata_buf), ct.c_void_p)
def reset ( self ) : ct . memset ( ct . byref ( self . _match_buf ) , 0 , self . size ) self . _update_pointers ( ) m = self . _ptr [ 0 ] m . u . match_size = self . size m . u . user . revision = self . _revision if self . _module . init : self . _module . init ( self . _ptr ) self . _module . mflags = 0 udata_size = getattr ( self . _module , 'udata_size' , 0 ) if udata_size > 0 : udata_buf = ( ct . c_ubyte * udata_size ) ( ) self . _module . udata = ct . cast ( ct . byref ( udata_buf ) , ct . c_void_p )