(use_datetime=False, use_builtin_types=False)
return parser, target
getparser() -> parser, unmarshaller

    Create an instance of the fastest available parser, and attach it
    to an unmarshalling object.  Return both objects.
getparser() -> parser, unmarshaller
getparser () - > parser unmarshaller
def getparser(use_datetime=False, use_builtin_types=False):
    """getparser() -> parser, unmarshaller

    Create an instance of the fastest available parser, and attach it
    to an unmarshalling object.  Return both objects.
    """
    if FastParser and FastUnmarshaller:
        if use_builtin_types:
            mkdatetime = _datetime_type
            mkbytes = base64.decodebytes
        elif use_datetime:
            mkdatetime = _datetime_type
            mkbytes = _binary
        else:
            mkdatetime = _datetime
            mkbytes = _binary
        target = FastUnmarshaller(True, False, mkbytes, mkdatetime, Fault)
        parser = FastParser(target)
    else:
        target = Unmarshaller(use_datetime=use_datetime, use_builtin_types=use_builtin_types)
        if FastParser:
            parser = FastParser(target)
        else:
            parser = ExpatParser(target)
    return parser, target
def getparser ( use_datetime = False , use_builtin_types = False ) : if FastParser and FastUnmarshaller : if use_builtin_types : mkdatetime = _datetime_type mkbytes = base64 . decodebytes elif use_datetime : mkdatetime = _datetime_type mkbytes = _binary else : mkdatetime = _datetime mkbytes = _binary target = FastUnmarshaller ( True , False , mkbytes , mkdatetime , Fault ) parser = FastParser ( target ) else : target = Unmarshaller ( use_datetime = use_datetime , use_builtin_types = use_builtin_types ) if FastParser : parser = FastParser ( target ) else : parser = ExpatParser ( target ) return parser , target