Skip to main content
function()

IRIS.function() calls a function, passing zero or more arguments and returns the value as a type corresponding to the datatype of the ObjectScript return value. Returns None if the ObjectScript return value is an empty string ($$$NULLOREF). See “Calling Functions and Procedures from Python” for details and examples.

  function (functionName, routineName, args) 

returns: bool, bytes, bytearray, int, float, Decimal, str, IRISList, Object, or None. See function() Typecast Methods for ways to return a specific type.

parameters:

  • function_name — name of the function to call.

  • routine_name — name of the routine containing the function.

  • *args — zero or more method arguments of supported types. Arguments of types bool, bytes, Decimal, float, int, str and IRISList are projected as literals. All other types are projected as proxy objects.

Also see procedure(), which is similar to function() but does not return a value.


FeedbackOpens in a new tab