clipspy-1.0.0/clips/values.py
def clips_udf_value(env: ffi.CData, value: type = ffi.NULL,
                    udf_value: ffi.CData = ffi.NULL) -> ffi.CData:
    """Convert a Python value into a CLIPS UDFValue.

    If no value is provided, an empty value is returned.

    """
    if udf_value is ffi.NULL:
        return ffi.new("UDFValue *")

    udf_value.value = CLIPS_VALUES.get(type(value))(env, value)

    return udf_value
Convert a Python value into a CLIPS UDFValue.

    If no value is provided, an empty value is returned.

    
Convert a Python value into a CLIPS UDFValue.
If no value is provided, an empty value is returned.
Convert a Python value into a CLIPS UDFValue . If no value is provided an empty value is returned .
def clips_udf_value(env: ffi.CData, value: type = ffi.NULL,
                    udf_value: ffi.CData = ffi.NULL) -> ffi.CData:
    if udf_value is ffi.NULL:
        return ffi.new("UDFValue *")
    udf_value.value = CLIPS_VALUES.get(type(value))(env, value)
    return udf_value
def clips_udf_value ( env : ffi . CData , value : type = ffi . NULL , udf_value : ffi . CData = ffi . NULL ) -> ffi . CData : if udf_value is ffi . NULL : return ffi . new ( "UDFValue *" ) udf_value . value = CLIPS_VALUES . get ( type ( value ) ) ( env , value ) return udf_value
Convert a Python value into a CLIPS UDFValue.
Convert a Python value into a CLIPS UDFValue .
"""Convert a Python value into a CLIPS UDFValue.

    If no value is provided, an empty value is returned.

    """
env
ffi.CData
value
type
udf_value
ffi.CData