Skip to content

Commit cff82cc

Browse files
committed
ExecuteFunctionArgs: removed debug
1 parent b018991 commit cff82cc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

isc/py/Main.cls

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,12 +369,11 @@ ClassMethod GetFunctionInfo(function As %String = "", Output defined As %Boolean
369369
}
370370

371371
/// Call arbitrary method or function.
372-
/// **kwargs can't be passed using this method. Use ExecuteFunction instead if you need to pass **kwargs.
373372
/// function - name of function to invoke. Can be nested, i.e. `random.randint`
374373
/// variable - if provided, result of function execution would be set into this python variable
375374
/// serialization - how to serialize result
376375
/// result - write result into this variable
377-
/// arguments - arguments as expected with triple dot syntax
376+
/// arguments - arguments as expected with triple dot syntax. To pass kwargs pass serialized JSON preceded with "**".
378377
/// set sc = ##class(isc.py.Main).ExecuteFunctionArgs()
379378
ClassMethod ExecuteFunctionArgs(function As %String, variable As %String = "zzzresult", serialization As %Integer = {##class(isc.py.Callout).#SerializationStr}, Output result As %String, arguments... As %String) As %Status
380379
{
@@ -495,8 +494,7 @@ ClassMethod ExecuteFunction(function As %String, positionalArguments As %List =
495494
quit:$$$ISERR(sc) sc
496495

497496
set code = code _ ")"
498-
499-
//zw code
497+
500498
set sc = ..SimpleString(code, variable, serialization, .result)
501499
quit:$$$ISERR(sc) sc
502500

0 commit comments

Comments
 (0)