Finalize undos all initializations made by Initialize() and subsequent use of Python/C API functions, and destroys all sub-interpreters that were created and not yet destroyed since the last call to Initialize(). Ideally, this frees all memory allocated by the Python interpreter.
()
| 70 | // and destroys all sub-interpreters that were created and not yet destroyed since the last call to Initialize(). |
| 71 | // Ideally, this frees all memory allocated by the Python interpreter. |
| 72 | func Finalize() { |
| 73 | C.Py_Finalize() |
| 74 | } |
| 75 | |
| 76 | // AddPythonPath adds a new path to the PYTHONPATH environment variable. |
| 77 | func AddPythonPath(path string) { |
no outgoing calls