<< pyByCopy Python Interaction Mechanism in Scilab pyDict >>

Python Interaction Mechanism in Scilab >> Python Interaction Mechanism in Scilab > pyDeff

pyDeff

Wrap a Python method as a Scilab macro.

Calling Sequence

pyDeff(moduleName, funNames, sciNames)

Arguments

moduleName

A string

funNames

A matrix of strings

sciNames

A matrix of strings with the same dimension as funNames

Description

Create Scilab macros wrapping Python functions. The result of a macro invocation is automatically unwrapped when it is possible.

Examples

pyDeff("os.path", ["getsize" "getatime"], ["pyFileSize" "pyGetAtime"]); 
pyFileSize(pathconvert("SCI/modules/elementary_functions/macros/cosh.sci", %f))
pyGetAtime(pathconvert("SCI/modules/elementary_functions/macros/cosh.sci", %f))

See Also

History

VersionDescription
5.4.0 Python module.

Report an issue
<< pyByCopy Python Interaction Mechanism in Scilab pyDict >>