pyget
procedure pyget(expr:string,var:array|set|list)
function pygetbool(expr:string):boolean
function pygetint(expr:string):integer
function pygetreal(expr:string):real
function pygetstr(expr:string):string
function pygettext(expr:string):text
expr
|
Python expression to evaluate
|
var
|
Destination Mosel array, set or list
|
declarations Arr: dynamic array(set of integer) of real end-declarations pyexec("import math") Arr(0) := 0.1; Arr(1) := 1.1 ! Old array data reset(Arr) ! Clear old array data pyget("{1: math.pi, 2: math.e}", Arr) ! Add new data to array writeln("Arr: ", Arr) writeln("pi: ", pygetreal("math.pi"))
© 2001-2022 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.