<< pyEvalStr Python Interaction Mechanism in Scilab pyGetAttr >>

Python Interaction Mechanism in Scilab >> Python Interaction Mechanism in Scilab > pyExists

pyExists

Check if a Python object in Scilab environment is always valid in Python environment.

Calling Sequence

ok = pyExists(obj)

Arguments

obj

A Python object

ok

A boolean

Description

Check the validity of a Python object. When an object is removed with pyRemove, the object is no more available so this function is useful to check that the object can be used.

Examples

a=pyWrap(%pi+%i*%e)
pyExists(a)

pyRemove a
// the object does not exist
pyExists(a)

See Also

History

VersionDescription
5.4.0 Python module.

Report an issue
<< pyEvalStr Python Interaction Mechanism in Scilab pyGetAttr >>