Results of 1 - 10 of about 15 for tstate (0.035 sec.)
- Thread states and the global interpreter lock — Python 3.14.8 ドキュメント 12644
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » Thread states and the global interpreter lock テーマ 自動 ライト ダーク | Thread states and the global interpreter lock ¶ Unless
...read_data -> interp ; /* Create a new thread state for the interpreter. It does not start out attached. */ PyThreadState * tstate = PyThreadState_New ( interp ); /* Attach the thread state, which will acquire the GIL. */ PyThreadState_Swap ( tstate );...sult or handle exception */ /* Destroy the thread state. No Python API allowed beyond this point. */ PyThreadState_Clear ( tstate ); PyThreadState_DeleteCurrent (); 警告 If the interpreter finalized before PyThreadState_Swap was called, then interp wil...read state and return it. The thread will have no thread state upon returning. void PyEval_RestoreThread ( PyThreadState * tstate ) ¶ 次に属します: Stable ABI . Set the attached thread state to tstate . The passed thread state should not be attached ,... - https://man.mtool.work/python/3.14/c-api/threads.html
- Thread states and the global interpreter lock — Python 3.14.8 ドキュメント 12644
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » Thread states and the global interpreter lock テーマ 自動 ライト ダーク | Thread states and the global interpreter lock ¶ Unless
...read_data -> interp ; /* Create a new thread state for the interpreter. It does not start out attached. */ PyThreadState * tstate = PyThreadState_New ( interp ); /* Attach the thread state, which will acquire the GIL. */ PyThreadState_Swap ( tstate );...sult or handle exception */ /* Destroy the thread state. No Python API allowed beyond this point. */ PyThreadState_Clear ( tstate ); PyThreadState_DeleteCurrent (); 警告 If the interpreter finalized before PyThreadState_Swap was called, then interp wil...read state and return it. The thread will have no thread state upon returning. void PyEval_RestoreThread ( PyThreadState * tstate ) ¶ 次に属します: Stable ABI . Set the attached thread state to tstate . The passed thread state should not be attached ,... - https://man.mtool.work/python/3.14/c-api/threads.html
- Multiple interpreters in a Python process — Python 3.14.8 ドキュメント 9857
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » Multiple interpreters in a Python process テーマ 自動 ライト ダーク | Multiple interpreters in a Python process ¶ ほとんどの場合は
...ig_OWN_GIL then PyInterpreterConfig.use_main_obmalloc must be 0 . PyStatus Py_NewInterpreterFromConfig ( PyThreadState * * tstate_p , const PyInterpreterConfig * config ) ¶ 新しいサブインタプリタ (sub-interpreter) を生成します。サブインタプリタとは、(ほ...イル記述子を参照しています)。 The given config controls the options with which the interpreter is initialized. Upon success, tstate_p will be set to the first thread state created in the new sub-interpreter. This thread state is attached . Note that no a...ctual thread is created; see the discussion of thread states below. If creation of the new interpreter is unsuccessful, tstate_p is set to NULL ; no exception is set since the exception state is stored in the attached thread state , which might not... - https://man.mtool.work/python/3.14/c-api/subinterpreters.html
- Multiple interpreters in a Python process — Python 3.14.8 ドキュメント 9631
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » Multiple interpreters in a Python process テーマ 自動 ライト ダーク | Multiple interpreters in a Python process ¶ ほとんどの場合は
...ig_OWN_GIL then PyInterpreterConfig.use_main_obmalloc must be 0 . PyStatus Py_NewInterpreterFromConfig ( PyThreadState * * tstate_p , const PyInterpreterConfig * config ) ¶ 新しいサブインタプリタ (sub-interpreter) を生成します。サブインタプリタとは、(ほ...イル記述子を参照しています)。 The given config controls the options with which the interpreter is initialized. Upon success, tstate_p will be set to the first thread state created in the new sub-interpreter. This thread state is attached . Note that no a...ctual thread is created; see the discussion of thread states below. If creation of the new interpreter is unsuccessful, tstate_p is set to NULL ; no exception is set since the exception state is stored in the attached thread state , which might not... - https://man.mtool.work/python/3.14/c-api/subinterpreters.html
- What's New In Python 3.11 — Python 3.14.8 ドキュメント 8917
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.11 テーマ 自動 ライト ダーク | What's New In Python 3.11 ¶ 編集者 : Pablo Galindo Salgado この記事では Python 3.10
...the asynchronous context manager protocol. (Contributed by Serhiy Storchaka in bpo-12022 and bpo-44471 .) Added object.__getstate__() , which provides the default implementation of the __getstate__() method. copy ing and pickle ing instances of subclas...is change has an unintended side effect: It trips up a small minority of existing Python projects not expecting object.__getstate__() to exist. See the later comments on gh-70766 for discussions of what workarounds such code may need. (Contributed by S...Tracing() and PyThreadState_LeaveTracing() (functions added to Python 3.11 by bpo-43760 ). recursion_depth : removed, use (tstate->recursion_limit - tstate->recursion_remaining) instead. stackcheck_counter : removed. Code defining PyThreadState_GetFram... - https://man.mtool.work/python/3.14/whatsnew/3.11.html
- What's New In Python 3.11 — Python 3.14.8 ドキュメント 8917
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.11 テーマ 自動 ライト ダーク | What's New In Python 3.11 ¶ 編集者 : Pablo Galindo Salgado この記事では Python 3.10
...the asynchronous context manager protocol. (Contributed by Serhiy Storchaka in bpo-12022 and bpo-44471 .) Added object.__getstate__() , which provides the default implementation of the __getstate__() method. copy ing and pickle ing instances of subclas...is change has an unintended side effect: It trips up a small minority of existing Python projects not expecting object.__getstate__() to exist. See the later comments on gh-70766 for discussions of what workarounds such code may need. (Contributed by S...Tracing() and PyThreadState_LeaveTracing() (functions added to Python 3.11 by bpo-43760 ). recursion_depth : removed, use (tstate->recursion_limit - tstate->recursion_remaining) instead. stackcheck_counter : removed. Code defining PyThreadState_GetFram... - https://man.mtool.work/python/3.14/whatsnew/3.11.html
- フレーム (frame) オブジェクト — Python 3.14.8 ドキュメント 7663
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » フレーム (frame) オブジェクト テーマ 自動 ライト ダーク | フレーム (frame) オブジェク
...: Previously, this type was only available after including <frameobject.h> . PyFrameObject * PyFrame_New ( PyThreadState * tstate , PyCodeObject * code , PyObject * globals , PyObject * locals ) ¶ Create a new frame object. This function returns a stro... - https://man.mtool.work/python/3.14/c-api/frame.html
- フレーム (frame) オブジェクト — Python 3.14.8 ドキュメント 7663
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » フレーム (frame) オブジェクト テーマ 自動 ライト ダーク | フレーム (frame) オブジェク
...: Previously, this type was only available after including <frameobject.h> . PyFrameObject * PyFrame_New ( PyThreadState * tstate , PyCodeObject * code , PyObject * globals , PyObject * locals ) ¶ Create a new frame object. This function returns a stro... - https://man.mtool.work/python/3.14/c-api/frame.html
- What's New In Python 3.12 — Python 3.14.8 ドキュメント 7558
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New In Python 3.12 テーマ 自動 ライト ダーク | What's New In Python 3.12 ¶ 編集者 : Adam Turner この記事では Python 3.11 と比較した
...nterpreterConfig config = { . check_multi_interp_extensions = 1 , . gil = PyInterpreterConfig_OWN_GIL , }; PyThreadState * tstate = NULL ; PyStatus status = Py_NewInterpreterFromConfig ( & tstate , & config ); if ( PyStatus_Exception ( status )) { retu...by Carlton Gibson in gh-99247 .) Add inspect.getasyncgenstate() and inspect.getasyncgenlocals() for determining the current state of asynchronous generators. (Contributed by Thomas Krennwallner in gh-79940 .) The performance of inspect.getattr_static(... - https://man.mtool.work/python/3.14/whatsnew/3.12.html
- 変更履歴 — Python 3.14.8 ドキュメント 7558
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...Fix a crash in the ISO-2022 decoders when decoding a byte after an unknown charset designation is set via the decoder's setstate method. Patch by tonghuaroot. gh-153539 : Fix a crash in the C implementation of io.TextIOWrapper.tell() when the decoder'...s getstate method triggers a reentrant seek, or when another thread seeks the same stream concurrently. Patch by tonghuaroot. gh-1529...ry instead of in a message box. gh-93966 : The highlighting of a syntax error in the IDLE Shell is now removed when the next statement is entered, not only when the next syntax error occurs. gh-105689 : Fix calltips, parenthesis matching and auto-inden... - https://man.mtool.work/python/3.14/whatsnew/changelog.html