per page, with , order by , clip by
Results of 1 - 7 of about 7 for PyStatus (0.013 sec.)
Python 初期化設定 13504
Python 初期化設定 PyInitConfig C API Added in version 3.14. Python は Py_InitializeFromInitConfig() で初期化できます。 Py_RunMain() 関数は、カスタマイズされた Python プログラムを書くために使用できます。 Initialization, Finalization, and Thr ... n 初期化設定" 使用例 常に隔離モードで実行するようカスタマイズした Python の例です。 int main ( int argc , char ** argv ) { PyStatus status ; PyConfig config ; PyConfig_InitPythonConfig ( & config ); config . isolated = 1 ; /* コマンドライン引数をデコード ... する。 Python を暗黙に事前初期化する (隔離モード)。 */ status = PyConfig_SetBytesArgv ( & config , argc , argv ); if ( PyStatus_Exception ( status )) { goto exception ; } status = Py_InitializeFromConfig ( & config ); if ( PyStatus_Exception ( status ... )) { goto exception ; } PyConfig_Clear ( & config ); return Py_RunMain (); exception : PyConfig_Clear ( & config ); if ( PyStatus_IsExit ( status )) { return status . exitcode ; } /* エラーメッセージを表示し、ゼロ以外の終了コードで プロセスを終了する * ...
https://man.mtool.work/python/3.14/c-api/init_config.html
What's New In Python 3.8 8651
What's New In Python 3.8 編集者 : Raymond Hettinger この記事では Python 3.7 と比較した Python 3.8 の新機能を解説します。 Python 3.8 は 2019 年 10 月 14 日にリリースされました。 詳しくは 変更履歴 を参照してください。 概要 -- リリースハイライ ... 初期化時に、すべての初期化設定に対するより良い制御と改善されたエラー報告が得られます。 新たな構造体: PyConfig PyPreConfig PyStatus PyWideStringList 新たな関数: PyConfig_Clear() PyConfig_InitIsolatedConfig() PyConfig_InitPythonConfig() PyConfig_Read() Py ... BytesArgv() PyConfig_SetBytesString() PyConfig_SetString() PyPreConfig_InitIsolatedConfig() PyPreConfig_InitPythonConfig() PyStatus_Error() PyStatus_Exception() PyStatus_Exit() PyStatus_IsError() PyStatus_IsExit() PyStatus_NoMemory() PyStatus_Ok() PyWide ...
https://man.mtool.work/python/3.14/whatsnew/3.8.html
1. 他のアプリケーションへの Python の埋め込み 8524
1. 他のアプリケーションへの Python の埋め込み 前章では、 Python を拡張する方法、すなわち C 関数のライブラリを Python に結びつけて機能を拡張する方法について述べました。同じようなことを別の方法でも実行できます: それは、自分の C/C++ アプリケー ... らかの操作を実現するのに利用できます。 #define PY_SSIZE_T_CLEAN #include <Python.h> int main ( int argc , char * argv []) { PyStatus status ; PyConfig config ; PyConfig_InitPythonConfig ( & config ); /* 省略可能だが推奨 */ status = PyConfig_SetBytesString ... ( & config , & config . program_name , argv [ 0 ]); if ( PyStatus_Exception ( status )) { goto exception ; } status = Py_InitializeFromConfig ( & config ); if ( PyStatus_Exception ( status ...
https://man.mtool.work/python/3.14/extending/embedding.html
Python プロセス内の複数のインタープリタ 8469
Python プロセス内の複数のインタープリタ ほとんどの場合は埋め込む Python インタプリタは1つだけですが、いくつかの場合に同一プロセス内、あるいは同一スレッド内で、複数の独立したインタプリタを作成する必要があります。 これを可能にするのがサブイン ... 自の GIL を使います。 PyInterpreterConfig_OWN_GIL の場合、 PyInterpreterConfig.use_main_obmalloc は 0 でなければなりません。 PyStatus Py_NewInterpreterFromConfig ( PyThreadState * * tstate_p , const PyInterpreterConfig * config ) 新しいサブインタプリタ (su ... reads = 0 , . check_multi_interp_extensions = 1 , . gil = PyInterpreterConfig_OWN_GIL , }; PyThreadState * tstate = NULL ; PyStatus status = Py_NewInterpreterFromConfig ( & tstate , & config ); if ( PyStatus_Exception ( status )) { Py_ExitStatusException ...
https://man.mtool.work/python/3.14/c-api/subinterpreters.html
1. Extending Python with C or C++ 8251
1. Extending Python with C or C++ It is quite easy to add new built-in modules to Python, if you know how to program in C. Such extension modules can do two things that can't be done directly in Python: they can implement new built-in objec ... followed by an import of the module: #define PY_SSIZE_T_CLEAN #include <Python.h> int main ( int argc , char * argv []) { PyStatus status ; PyConfig config ; PyConfig_InitPythonConfig ( & config ); /* Add a built-in module, before Py_Initialize */ if ( ... [0] to the Python interpreter */ status = PyConfig_SetBytesString ( & config , & config . program_name , argv [ 0 ]); if ( PyStatus_Exception ( status )) { goto exception ; } /* Initialize the Python interpreter. Required. If this step fails, it will be ... a fatal error. */ status = Py_InitializeFromConfig ( & config ); if ( PyStatus_Exception ( status )) { goto exception ; } PyConfig_Clear ( & config ); /* Optionally import the module; alternatively, im ...
https://man.mtool.work/python/3.14/extending/extending.html
インタープリタの初期化と終了処理 8070
インタープリタの初期化と終了処理 初期化前にインタープリタを設定する方法の詳細は、 Python の初期化設定 を参照してください。 Python の初期化前 Python を組み込むアプリケーションでは、一部の関数と グローバルな設定変数 を除き、ほかの Python/C AP ... み込む場合に有用なことがあります。 Python の初期化設定 をカスタマイズするには、 Py_InitializeFromConfig() を使ってください。 PyStatus Py_InitializeFromConfig ( const PyConfig * config ) PyConfig による初期化 で説明するように、 config の設定で Python を初期 ...
https://man.mtool.work/python/3.14/c-api/interp-lifecycle.html
What's New In Python 3.12 8070
What's New In Python 3.12 編集者 : Adam Turner この記事では Python 3.11 と比較した Python 3.12 の新機能を解説します。Python 3.12 は2023年10月2日にリリースされました。全詳細については 変更履歴 をご覧ください。 参考 PEP 693 -- Python 3.12 リリ ... config = { . check_multi_interp_extensions = 1 , . gil = PyInterpreterConfig_OWN_GIL , }; PyThreadState * tstate = NULL ; PyStatus status = Py_NewInterpreterFromConfig ( & tstate , & config ); if ( PyStatus_Exception ( status )) { return -1 ; } /* 新しい ...
https://man.mtool.work/python/3.14/whatsnew/3.12.html
PREV 1 NEXT