Function add_implicit_resolver

Synopsis

def add_implicit_resolver(tag, regexp, first=None, Loader=Loader, Dumper=Dumper)

Description

Add an implicit scalar detector. If an implicit scalar value matches the given regexp, the corresponding tag is assigned to the scalar. first is a sequence of possible initial characters or None.

Mentioned in

Source

Lines 308-318 in lib3/yaml/__init__.py.

def add_implicit_resolver(tag, regexp, first=None,
        Loader=Loader, Dumper=Dumper):
    """
    Add an implicit scalar detector.
    If an implicit scalar value matches the given regexp,
    the corresponding tag is assigned to the scalar.
    first is a sequence of possible initial characters or None.
    """
    Loader.add_implicit_resolver(tag, regexp, first)
    Dumper.add_implicit_resolver(tag, regexp, first)






Add Discussion as Guest

Log in