Results of 1 - 10 of about 14 for PyInterpreterState (0.008 sec.)
- Python プロセス内の複数のインタープリタ 14879
- Python プロセス内の複数のインタープリタ ほとんどの場合は埋め込む Python インタプリタは1つだけですが、いくつかの場合に同一プロセス内、あるいは同一スレッド内で、複数の独立したインタプリタを作成する必要があります。 これを可能にするのがサブイン
...る固有の役割を担います。 ランタイムの初期化中の実行も担い、通常はランタイムの終了処理中にもアクティブなインタープリタです。 PyInterpreterState_Main() は、その状態へのポインターを返します。 サブインタプリタを切り替えが PyThreadState_Swap() 関数でできます。 次の関数を...atus )) { Py_ExitStatusException ( status ); } 設定は短時間だけ使われ、変更されることはありません。 初期化中に、設定の値が PyInterpreterState の各種の値に変換されます。 設定の読み取り専用のコピーが、 PyInterpreterState 内部に保存される場合もあります。 拡張モジュー...れたスレッドから Pythonコードを実行している拡張モジュールはサブインタプリタを使うと壊れる可能性があります。 高水準 API type PyInterpreterState 次に属します: Limited API (不透明な構造体として). このデータ構造体は、協調動作する多数のスレッド間で共有されている状態を表... - https://man.mtool.work/python/3.14/c-api/subinterpreters.html
- C API Stability 9347
- C API Stability 特記のない限り、Python の C API には後方互換性ポリシー PEP 387 が適用されます。 変更の大半はソース互換性を保ちます (通常は新しい API の追加だけを行います)。 既存 API の変更や削除は、非推奨の期間を経た後、または重大な問題を修
...ortModuleLevel() PyImport_ImportModuleLevelObject() PyImport_ImportModuleNoBlock() PyImport_ReloadModule() PyIndex_Check() PyInterpreterState PyInterpreterState_Clear() PyInterpreterState_Delete() PyInterpreterState_Get() PyInterpreterState_GetDict() PyInterpreter...State_GetID() PyInterpreterState_New() PyIter_Check() PyIter_Next() PyIter_NextItem() PyIter_Send() PyListIter_Type PyListRevIter_Type PyList_Append() PyLi... - https://man.mtool.work/python/3.14/c-api/stable.html
- スレッド状態とグローバルインタープリタロック 9015
- スレッド状態とグローバルインタープリタロック CPython の フリースレッドビルド を除き、Python インタープリタは一般にスレッドセーフではありません。 マルチスレッドの Python プログラムをサポートするため、 グローバルインタープリタロック 、または
...釈 PyThreadState_New requires an argument pointing to the desired interpreter; such a pointer can be acquired via a call to PyInterpreterState_Get() from the code where the thread was created. 例えば: /* The return value of PyInterpreterState_Get() from the functio...n that created this thread. */ PyInterpreterState * interp = thread_data -> interp ; /* Create a new thread state for the interpreter. It does not start out attached. */ Py...はこの処理を行います。 具体的には、現在のインタープリタに属するほかのすべての PyThreadState オブジェクトと、ほかのすべての PyInterpreterState オブジェクトの終了処理を行います。 このことと メインインタープリタ の特殊な性質のため、 fork() は、CPython のグローバルなラ... - https://man.mtool.work/python/3.14/c-api/threads.html
- 監査イベント表 8542
- 監査イベント表 この表は、 CPython ランタイムと標準ライブラリ全体で sys.audit() または PySys_Audit() の呼び出しによって送出されるすべてのイベントを含んでいます。これらの呼び出しは、 3.8 以降に追加されました ( PEP 578 を参照) 。 これらのイベン
...onlyargcount , nlocals , stacksize , flags [1] compile source , filename [1] cpython.PyConfig_Set name , value [1] cpython.PyInterpreterState_Clear [1] cpython.PyInterpreterState_New [1] cpython._PySys_ClearAuditHooks [1] cpython.remote_debugger_script script_path... - https://man.mtool.work/python/3.14/library/audit_events.html
- What's New In Python 3.8 8279
- What's New In Python 3.8 編集者 : Raymond Hettinger この記事では Python 3.7 と比較した Python 3.8 の新機能を解説します。 Python 3.8 は 2019 年 10 月 14 日にリリースされました。 詳しくは 変更履歴 を参照してください。 概要 -- リリースハイライ
...tializeFromArgs() Py_PreInitializeFromBytesArgs() Py_RunMain() このPEP は、 _PyRuntimeState.preconfig ( PyPreConfig 型) と PyInterpreterState.config ( PyConfig 型) を内部構造体に加えます。 PyInterpreterState.config は新たな参照設定となり、グローバル設定や他の内部変...PyGC_Head 構造体が全面的に変更されました。 そのメンバーに触れるコードはすべて書き直す必要があります ( bpo-33597 を参照)。 PyInterpreterState 構造体は「内部」ヘッダーファイル (具体的には Include/internal/pycore_pystate.h) に移されました。 不透明な PyInterpreterSta... - https://man.mtool.work/python/3.14/whatsnew/3.8.html
- What's New in Python 2.2 8209
- What's New in Python 2.2 著者 : A.M. Kuchling はじめに この文書は 2002 年 10 月 14 日にリリースされた Python 2.2.2 の新機能について解説します。Python 2.2.2 は 2001 年 12 月 21 日にリリースされた Python 2.2 のバグフィックスリリースです。 Pyt
...(Contributed by Fred L. Drake, Jr.) 主に Python のデバッガーや開発ツールの実装者向けに、別の低水準 API も追加されました。 PyInterpreterState_Head() と PyInterpreterState_Next() を使うと、存在するすべてのインタープリタオブジェクトをたどれます。 PyInterpreterState_... - https://man.mtool.work/python/3.14/whatsnew/2.2.html
- What's New In Python 3.10 8069
- What's New In Python 3.10 編集者 : Pablo Galindo Salgado この記事では Python 3.9 と比較した Python 3.10 の新機能を解説します。Python 3.10 は2021年10月4日にリリースされました。全詳細については 変更履歴 をご覧ください。 概要 -- リリースハイラ
...AsWideCharString() を使ってください。 (Inada Naoki による貢献、 bpo-41103 。) _Py_CheckRecursionLimit 変数を削除しました。 PyInterpreterState 構造体の ceval.recursion_limit に置き換えられています。 (Victor Stinner による貢献、 bpo-41834 。) ドキュメントに記載されて...いないマクロ Py_ALLOW_RECURSION と Py_END_ALLOW_RECURSION 、および PyInterpreterState 構造体の recursion_critical フィールドを削除しました。 (Serhiy Storchaka による貢献、 bpo-41936 。) ドキュメントに記載され... - https://man.mtool.work/python/3.14/whatsnew/3.10.html
- What's New In Python 3.13 8069
- What's New In Python 3.13 エディタ : Adam Turner と Thomas Wouters この記事では Python 3.12 と比較した Python 3.13 の新機能を解説します。Python 3.13 は2024年10月7日にリリースされました。全詳細については 変更履歴 をご覧ください。 参考 PEP 71
...は常にゼロ以外の値を返します。 (Victor Stinner による gh-105182 での貢献。) Python 3.8 との後方互換性のために残されていた、 PyInterpreterState_Get() の別名 _PyInterpreterState_Get() が削除されました。 pythoncapi-compat project を使えば、Python 3.8 以前でも PyInterp... - https://man.mtool.work/python/3.14/whatsnew/3.13.html
- What's New In Python 3.9 8069
- What's New In Python 3.9 編集者 : Łukasz Langa この記事では Python 3.8 と比較した Python 3.9 の新機能を解説します。 Python 3.9 は 2020 年 10 月 5 日にリリースされました。 詳しくは 変更履歴 を参照してください。 参考 PEP 596 - Python 3.9 リリ
...が追加されました。 (Contributed by Victor Stinner in bpo-40421 .) インタープリタを取得する PyThreadState_GetInterpreter() と PyInterpreterState_Get() 関数が追加されました。 Python スレッド状態の現在のフレームを取得する PyThreadState_GetFrame() 関数と、Python スレッド...ジェクトを呼び出す PyObject_CallOneArg() が追加されました。 (Jeroen Demeyer によるパッチ、 bpo-37483 。) Python 3.9への移植 PyInterpreterState.eval_frame ( PEP 523 ) に必須パラメータ tstate ( PyThreadState* ) が追加されました。 (Contributed by Victor Stinner in bpo... - https://man.mtool.work/python/3.14/whatsnew/3.9.html
- インタープリタの初期化と終了処理 8017
- インタープリタの初期化と終了処理 初期化前にインタープリタを設定する方法の詳細は、 Python の初期化設定 を参照してください。 Python の初期化前 Python を組み込むアプリケーションでは、一部の関数と グローバルな設定変数 を除き、ほかの Python/C AP
...って常に隔離モードで実行するようカスタマイズした Python の例は、 Python の設定 を参照してください。 int PyUnstable_AtExit ( PyInterpreterState * interp , void ( * func ) ( void * ) , void * data ) これは Unstable API です。マイナーリリースで予告なく変更されることが... - https://man.mtool.work/python/3.14/c-api/interp-lifecycle.html