@classmethod<EOL><INDENT>def zfind(cls, **kwargs):<DEDENT>
assert len(kwargs) == <NUM_LIT:1><EOL>fldcond = kwargs.keys()[<NUM_LIT:0>].split('<STR_LIT>')<EOL>fld = fldcond[<NUM_LIT:0>]<EOL>f = cls.__dict__[fld]<EOL>val = kwargs.values()[<NUM_LIT:0>]<EOL>if isinstance(val, tuple):<EOL><INDENT>assert len(val) == <NUM_LIT:2><EOL>val = (f.typecast_for_write(val[<NUM_LIT:0>]), f.typecast_for_write(val[<NUM_LIT:1>]))<EOL><DEDENT>else:<EOL><INDENT>val = f.typecast_for_write(val)<EOL><DEDENT>if len(fldcond) == <NUM_LIT:1>:<EOL><INDENT>return f.zindex.zfind(eq = val)<EOL><DEDENT>else:<EOL><INDENT>cond = fldcond[<NUM_LIT:1>]<EOL>return f.zindex.zfind(**{cond: val})<EOL><DEDENT>
Calls typecast_for_write, so it can be used with datetime values,
            or other special field types. For other z* methods,
            typecast_for_write must be called explicitly if needed.