프로퍼티 | 타입 | 설명 |
---|
메소드 | 설명 | |
---|---|---|
AcquireLock ( ) : |
AcquireLock Method Acquire the Python global interpreter lock (GIL). Managed code *must* call this method before using any objects or calling any methods on objects in the Python.Runtime namespace. The only exception is PythonEngine.Initialize, which may be called without first calling AcquireLock. Each call to AcquireLock must be matched by a corresponding call to ReleaseLock, passing the token obtained from AcquireLock. For more information, see the "Extending and Embedding" section of the Python documentation on www.python.org. |
|
BeginAllowThreads ( ) : |
BeginAllowThreads Method Release the Python global interpreter lock to allow other threads to run. This is equivalent to the Py_BEGIN_ALLOW_THREADS macro provided by the C Python API. For more information, see the "Extending and Embedding" section of the Python documentation on www.python.org. |
|
EndAllowThreads ( |
EndAllowThreads Method Re-aquire the Python global interpreter lock for the current thread. This is equivalent to the Py_END_ALLOW_THREADS macro provided by the C Python API. For more information, see the "Extending and Embedding" section of the Python documentation on www.python.org. |
|
ImportModule ( string name ) : |
ImportModule Method Given a fully-qualified module or package name, import the module and return the resulting module object as a PyObject or null if an exception is raised. |
|
InitExt ( ) : |
||
InitExt ( ) : void | ||
Initialize ( ) : void |
Initialize Method Initialize the Python runtime. It is safe to call this method more than once, though initialization will only happen on the first call. It is *not* necessary to hold the Python global interpreter lock (GIL) to call this method. |
|
ModuleFromString ( string name, string code ) : |
ModuleFromString Method Given a string module name and a string containing Python code, execute the code in and return a module of the given name. |
|
ReleaseLock ( |
ReleaseLock Method Release the Python global interpreter lock using a token obtained from a previous call to AcquireLock. For more information, see the "Extending and Embedding" section of the Python documentation on www.python.org. |
|
ReloadModule ( |
ReloadModule Method Given a PyObject representing a previously loaded module, reload the module. |
|
RunSimpleString ( string code ) : int | ||
RunString ( string code ) : |
RunString Method Run a string containing Python code. Returns the result of executing the code string as a PyObject instance, or null if an exception was raised. |
|
RunString ( string code, |
||
Shutdown ( ) : void |
Shutdown Method Shutdown and release resources held by the Python runtime. The Python runtime can no longer be used in the current process after calling the Shutdown method. |
public static EndAllowThreads ( |
||
ts | ||
리턴 | void |
public static ImportModule ( string name ) : |
||
name | string | |
리턴 |
public static ModuleFromString ( string name, string code ) : |
||
name | string | |
code | string | |
리턴 |
public static ReloadModule ( |
||
module | ||
리턴 |
public static RunString ( string code, |
||
code | string | |
globals | ||
locals | ||
리턴 |