Results of 1 - 9 of about 9 for interp (0.007 sec.)
- Python プロセス内の複数のインタープリタ 12618
- Python プロセス内の複数のインタープリタ ほとんどの場合は埋め込む Python インタプリタは1つだけですが、いくつかの場合に同一プロセス内、あるいは同一スレッド内で、複数の独立したインタプリタを作成する必要があります。 これを可能にするのがサブイン
...固有の役割を担います。 ランタイムの初期化中の実行も担い、通常はランタイムの終了処理中にもアクティブなインタープリタです。 PyInterpreterState_Main() は、その状態へのポインターを返します。 サブインタプリタを切り替えが PyThreadState_Swap() 関数でできます。...次の関数を使ってサブインタプリタの作成と削除が行えます: type PyInterpreterConfig サブインタープリタの設定に使うパラメーターの大部分を含む構造体です。 値は Py_NewInterpreterFromConfig() でのみ使...クト」アロケーターの状態を使います。 それ以外の場合は、メインインタープリタの状態を共有して使います。 0 の場合、 check_multi_interp_extensions は 1 (ゼロ以外) でなければなりません。 1 の場合、 gil は PyInterpreterConfig_OWN_GIL であってはなりません。 int... - https://man.mtool.work/python/3.14/c-api/subinterpreters.html
- concurrent.interpreters --- 同じプロセス内の複数のインタープリタ 11468
- concurrent.interpreters --- 同じプロセス内の複数のインタープリタ Added in version 3.14. ソースコード: Lib/concurrent/interpreters concurrent.interpreters モジュールは、低水準の _interpreters モジュールの上に、より高水準のインターフェースを構
...り、それだけでは役に立ちません。 実際の並行処理は、別途 スレッド によって利用できます。 後述の説明 を参照してください。 参考 InterpreterPoolExecutor 使い慣れたインターフェースで、スレッドとインタープリタを組み合わせます。 拡張モジュールを分離する 複数のイ...リタの状態に加え、現在の例外やバイトコードの評価ループに関する実行時の状態があります)。 The concept and functionality of the interpreter have been a part of Python since version 2.2, but the feature was only available through the C-API and not well known...ープリタに切り替えてから、関数を呼び出します。 ランタイムは、現在のインタープリタの状態を使って関数を実行します。 concurrent.interpreters モジュールは、インタープリタを作成・管理する基本的な API と、この切り替えと呼び出しの操作を提供します。 この操作で、... - https://man.mtool.work/python/3.14/library/concurrent.interpreters.html
- リモートデバッグのアタッチプロトコル 9400
- リモートデバッグのアタッチプロトコル このプロトコルを使うと、外部ツールから実行中の CPython プロセスにアタッチし、Python コードをリモートで実行できます。 別の Python プロセスへのアタッチには、プラットフォームによって追加の権限や設定が必要な
...間で複数回のコンテキスト切り替えが必要なため、はるかに低速です。 For parsing ELF sections, the process involves reading and interpreting the ELF file format structures from the binary file on disk. The ELF header contains a pointer to the section header...ンタープリタと対応するスレッド状態の構造体をメモリ内で探さなければなりません。 関連する内部構造体の定義は次のとおりです。 PyInterpreterState は、隔離された Python インタープリタのインスタンスを表します。 各インタープリタは、インポート済みモジュール、組み...、デバッガーが使う制御用フィールドを含みます。 スレッドの位置を特定するには、次の手順を実行します。 オフセット runtime_state.interpreters_head を使い、 PyRuntime 構造体から最初のインタープリタのアドレスを取得します。 ここが、動作中のインタープリタの連結リ... - https://man.mtool.work/python/3.14/howto/remote_debugging.html
- スレッド状態とグローバルインタープリタロック 9131
- スレッド状態とグローバルインタープリタロック CPython の フリースレッドビルド を除き、Python インタープリタは一般にスレッドセーフではありません。 マルチスレッドの Python プログラムをサポートするため、 グローバルインタープリタロック 、または
...PyThreadState_New() followed by PyThreadState_Swap() . 注釈 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 function that created this thread. */ PyInterpreterState * interp = thread_data -> interp ; /* Cr...eate a new thread state for the interpreter. It does not start out attached. */ PyThreadState * tstate = PyThreadState_New ( interp ); /* Attach the thread state... - https://man.mtool.work/python/3.14/c-api/threads.html
- インタープリタの初期化と終了処理 8232
- インタープリタの初期化と終了処理 初期化前にインタープリタを設定する方法の詳細は、 Python の初期化設定 を参照してください。 Python の初期化前 Python を組み込むアプリケーションでは、一部の関数と グローバルな設定変数 を除き、ほかの Python/C AP
...に、最後に Py_Initialize() を呼び出してから作成され、まだ破棄されていないサブインタープリタをすべて破棄します (以下の Py_NewInterpreter() を参照)。 再び Py_Initialize() を呼び出さずにもう一度呼び出しても、何も行いません。 Py_Initialize() の逆の処理なので...s. Dynamically loaded extension modules loaded by Python are not unloaded. Small amounts of memory allocated by the Python interpreter may not be freed (if you find a leak, please report it). Memory tied up in circular references between objects is not...not be called recursively from within itself. Therefore, it must not be called by any code that may be run as part of the interpreter shutdown process, such as atexit handlers, object finalizers, or any code that may be run while flushing the stdout a... - https://man.mtool.work/python/3.14/c-api/interp-lifecycle.html
- tkinter --- Tcl/Tk の Python インターフェース 7585
- tkinter --- Tcl/Tk の Python インターフェース ソースコード: Lib/tkinter/__init__.py tkinter パッケージ ("Tk インターフェース") は、 Tcl/Tk GUI ツールキットに対する標準の Python インターフェースです。 Tk と tkinter は macOS を含むほとんどの
...inter calls the library from the originating Python thread, even if this is different than the thread that created the Tcl interpreter. A global lock ensures only one call occurs at a time. tkinter では、専用のインタープリタを持つ Tk オブジェクトを複数...が返した名前を指定できます。 nametowidget ( name ) Tk のパス名 name に対応するウィジェットのインスタンスを返します。 send ( interp , cmd , * args ) 指定された args を付けて Tcl コマンド cmd を、 interp という名前で登録された Tcl インタープリタに送り、結...ベントを処理します。 通常はアプリケーションを実行するために、ルートウィンドウで一度だけ呼び出します。 quit ( ) Quit the Tcl interpreter, causing mainloop() to return. update ( ) イベントループに入り、アイドル時のコールバックを含め、保留中のすべてのイベン... - https://man.mtool.work/python/3.14/library/tkinter.html
- 3. Python を構成する 7459
- 3. Python を構成する 3.1. ビルド要件 CPython をビルドするためには、次のものが必要です: C11 コンパイラ。 C11 オプション機能 は不要です。 Windows では、 Microsoft Visual Studio 2017 以降が必要です。 IEEE 754 浮動小数点数と 浮動小数点 Not-a-Nu
...。 詳しくは フリースレッドの CPython を参照してください。 Added in version 3.13. --enable-experimental-jit =[no|yes|yes-off|interpreter] 実験的なジャストインタイムコンパイラ の組み込み方法を指定します。 no : JIT をビルドしません。 yes : JIT を有効にしま...ff : JIT をビルドしますが、デフォルトでは無効にします。 実行時に有効にするには、環境変数 PYTHON_JIT=1 を設定してください。 interpreter : 「JIT インタープリタ」を有効にします (JIT 自体をデバッグする場合にのみ有用です)。 実行時に無効にするには、環境変数...を使用する場合は、libpython のセマンティックインターポジションも無効にします。 コンパイラとリンカのフラグに -fno-semantic-interposition を追加します。 注釈 ビルド中に、一部のソースファイルのプロファイルデータが利用できないというコンパイラの警告が表示さ... - https://man.mtool.work/python/3.14/using/configure.html
- What's New In Python 3.12 7459
- 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 = PyInterprete...rConfig_OWN_GIL , }; PyThreadState * tstate = NULL ; PyStatus status = Py_NewInterpreterFromConfig ( & tstate , & config ); if ( PyStatus_Exception ( status )) { return -1 ; } /* 新しいインタープリタが現在の...でアクティブになりました。 */ インタープリタごとの GIL を持つサブインタープリタ向け C API の使用例については、 Modules/_xxsubinterpretersmodule.c も参照してください。 (寄稿: Eric Snow, gh-104210 ほか) PEP 669: CPython の低影響モニタリング PEP 669 は、プロ... - https://man.mtool.work/python/3.14/whatsnew/3.12.html
- What's new in Python 3.14 7459
- What's new in Python 3.14 エディタ : Adam Turner と Hugo van Kemenade この記事では Python 3.13 と比較した Python 3.14 の新機能を解説します。Python 3.14 は2025年10月7日にリリースされました。全詳細については 変更履歴 をご覧ください。 参考 PEP
...rd library. The biggest changes include template string literals , deferred evaluation of annotations , and support for subinterpreters in the standard library. ライブラリの変更内容には asyncio のイントロスペクション機能 の重要な改善、 新モジュール com...この各環境は「インタープリタ」といいます。しかしこの機能は C-API 経由でしか利用できませんでした。 Python 3.14 で concurrent.interpreters モジュールが追加されたことにより、この制限がなくなりました。 複数のインタープリタを使うことに大きな利点がある理由とし...れているフリースレッド対応作業により、複数インタープリタの対応も早まると思われます。 他の 3.14 追加要素: concurrent.futures.InterpreterPoolExecutor 。 (Eric Snow の貢献による gh-134939 ) 参考 PEP 734 PEP 750 : テンプレート文字列リテラル テンプレート文字... - https://man.mtool.work/python/3.14/whatsnew/3.14.html
PREV
1
NEXT