pyunload
pyunload |
Purpose
Synopsis
procedure pyunload
Example
The following example releases the Python interpreter:
pyunload
Further information
1. The use of this procedure is optional: the Python interpreter is automatically released at the end of a model execution. However, you may prefer to release it sooner to free resources allocated by Python and to reset the interpreter state. Moreover, releasing the interpreter makes it available for initialization in another Mosel model which is executed in the same Mosel instance.
2. Some Python extensions, like NumPy and pandas, do not work if
pyinit and
pyunload are called multiple times inside of a single Mosel instance. This is due to a bug in Python's finalization function. See
https://docs.python.org/3/c-api/init.html#c.Py_FinalizeEx and
https://github.com/numpy/numpy/issues/8097 for more details.
Related topics
© 2001-2019 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.
