(self, chain, entry, position)
Replace existing rule in *chain* at *position* with given *rule*.
Replace existing rule in *chain* at *position* with given *rule*.
Replace existing rule in * chain * at * position * with given * rule * .
def replace_entry(self, chain, entry, position):
        """Replace existing rule in *chain* at *position* with given *rule*."""
        rv = self._iptc.iptc_replace_entry(chain.encode(),
                                           ct.cast(entry, ct.c_void_p),
                                           position, self._handle)
        if rv != 1:
            raise IPTCError("can't replace entry in chain %s: %s" %
                            (chain, self.strerror()))
def replace_entry ( self , chain , entry , position ) : rv = self . _iptc . iptc_replace_entry ( chain . encode ( ) , ct . cast ( entry , ct . c_void_p ) , position , self . _handle ) if rv != 1 : raise IPTCError ( "can't replace entry in chain %s: %s" % ( chain , self . strerror ( ) ) )