release
Applicable Products
All processors
Function Usage
Releases the ownership on the Python side and returns the C++ Pattern* handle as an integer.
Prototype
1 | release() -> int |
Parameters
None
Returns
Type |
Description |
|---|---|
int |
The integer value corresponding to the C++ Pattern* handle. |
Restrictions
- This method is for internal use of the GE bridge layer and does not need to be directly called by Python Pass developers. The framework automatically calls release() after patterns() returns a pattern.
- A successful release can be called only once for each instance.
- After the call, other methods except is_valid and release will throw RuntimeError.
Parent topic: Pattern