Results of 1 - 2 of about 2 for NewInterpreterFromConfig (0.003 sec.)
- Python プロセス内の複数のインタープリタ 11228
- Python プロセス内の複数のインタープリタ ほとんどの場合は埋め込む Python インタプリタは1つだけですが、いくつかの場合に同一プロセス内、あるいは同一スレッド内で、複数の独立したインタプリタを作成する必要があります。 これを可能にするのがサブイン
...作成と削除が行えます: type PyInterpreterConfig サブインタープリタの設定に使うパラメーターの大部分を含む構造体です。 値は Py_NewInterpreterFromConfig() でのみ使用され、ランタイムによって変更されることはありません。 Added in version 3.12. 構造体フィールド: int use_main_obm...います。 PyInterpreterConfig_OWN_GIL の場合、 PyInterpreterConfig.use_main_obmalloc は 0 でなければなりません。 PyStatus Py_NewInterpreterFromConfig ( PyThreadState * * tstate_p , const PyInterpreterConfig * config ) 新しいサブインタプリタ (sub-interpreter) を生成します。...ulti_interp_extensions = 1 , . gil = PyInterpreterConfig_OWN_GIL , }; PyThreadState * tstate = NULL ; PyStatus status = Py_NewInterpreterFromConfig ( & tstate , & config ); if ( PyStatus_Exception ( status )) { Py_ExitStatusException ( status ); } 設定は短時間だけ使われ... - https://man.mtool.work/python/3.14/c-api/subinterpreters.html
- What's New In Python 3.12 7485
- 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 リリ
...のみ利用できますが、 Python API は 3.13 で利用可能になる予定です。 独自の GIL を持つインタープリタを作成するには、新しい Py_NewInterpreterFromConfig() 関数を使います: PyInterpreterConfig 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 ; } /* 新しいインタープリタが現在のスレッドでアク...orrectly track reference counts and allocated blocks (Eddie Elizondo が gh-84436 で貢献しました。) PEP 684 : 新しい関数 Py_NewInterpreterFromConfig() と PyInterpreterConfig を追加しました。 独自の GIL を持つサブインタープリタを作成できます。 (詳しくは PEP 684: インタープ... - https://man.mtool.work/python/3.14/whatsnew/3.12.html
PREV
1
NEXT