per page, with , order by , clip by
Results of 1 - 10 of about 365 for need (0.006 sec.)
Thread states and the global interpreter lock — Python 3.14.8 ドキュメント 9462
ナビゲーション 索引 モジュール | 次へ | 前へ | 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 ... . However, even on builds with the GIL disabled, it is still required to have an attached thread state, as the interpreter needs to keep track of which threads may access Python objects. 注釈 Even on the free-threaded build, attaching a thread state ... ched thread state when using Python's C API, including during embedding and when implementing methods, so it's uncommon to need to set up a thread state on your own. Only in some specific cases, such as in a Py_BEGIN_ALLOW_THREADS block or in a fresh ... e an attached thread state. If uncertain, check if PyThreadState_GetUnchecked() returns NULL . If it turns out that you do need to create a thread state, call PyThreadState_New() followed by PyThreadState_Swap() , or use the dangerous PyGILState_Ensu ...
https://man.mtool.work/python/3.14/c-api/threads.html
Thread states and the global interpreter lock — Python 3.14.8 ドキュメント 9462
ナビゲーション 索引 モジュール | 次へ | 前へ | 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 ... . However, even on builds with the GIL disabled, it is still required to have an attached thread state, as the interpreter needs to keep track of which threads may access Python objects. 注釈 Even on the free-threaded build, attaching a thread state ... ched thread state when using Python's C API, including during embedding and when implementing methods, so it's uncommon to need to set up a thread state on your own. Only in some specific cases, such as in a Py_BEGIN_ALLOW_THREADS block or in a fresh ... e an attached thread state. If uncertain, check if PyThreadState_GetUnchecked() returns NULL . If it turns out that you do need to create a thread state, call PyThreadState_New() followed by PyThreadState_Swap() , or use the dangerous PyGILState_Ensu ...
https://man.mtool.work/python/3.14/c-api/threads.html
C API Extension Support for Free Threading — Python 3.14.8 ドキュメント 8851
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » C API Extension Support for Free Threading テーマ 自動 ライト ダーク | C API Extension Support for Free Threading ¶ Starting with the 3.13 release ... used to determine whether the current running interpreter had the macro defined. Module Initialization ¶ Extension modules need to explicitly indicate that they support running with the GIL disabled; otherwise importing the extension will raise a war ... ecting Internal Extension State ¶ Your extension may have internal state that was previously protected by the GIL. You may need to add locking to protect this state. The approach will depend on your extension, but some common patterns include: Caches ... e or disabling it in the free-threaded build if the cache is not critical for performance. Global State : global state may need to be protected by a lock or moved to thread local storage. C11 and C++11 provide the thread_local or _Thread_local for th ...
https://man.mtool.work/python/3.14/howto/free-threading-extensions.html
C API Extension Support for Free Threading — Python 3.14.8 ドキュメント 8851
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » C API Extension Support for Free Threading テーマ 自動 ライト ダーク | C API Extension Support for Free Threading ¶ Starting with the 3.13 release ... used to determine whether the current running interpreter had the macro defined. Module Initialization ¶ Extension modules need to explicitly indicate that they support running with the GIL disabled; otherwise importing the extension will raise a war ... ecting Internal Extension State ¶ Your extension may have internal state that was previously protected by the GIL. You may need to add locking to protect this state. The approach will depend on your extension, but some common patterns include: Caches ... e or disabling it in the free-threaded build if the cache is not critical for performance. Global State : global state may need to be protected by a lock or moved to thread local storage. C11 and C++11 provide the thread_local or _Thread_local for th ...
https://man.mtool.work/python/3.14/howto/free-threading-extensions.html
同期プリミティブ — Python 3.14.8 ドキュメント 8240
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 同期プリミティブ テーマ 自動 ライト ダーク | 同期プリミティブ ¶ The C-API provides a basic mutual exclusion lock. type PyMutex ¶ ... tion where there is no PyObject -- for example, when working with a C type that does not extend or wrap PyObject but still needs to call into the C API in a manner that might lead to deadlocks. The functions and structs used by the macros are exposed ... expansions. Note that the sizes and contents of the structures may change in future Python versions. 注釈 Operations that need to lock two objects at once must use Py_BEGIN_CRITICAL_SECTION2 . You cannot use nested critical sections to lock more tha ... n success, this function returns a lock; on failure, this function returns 0 without an exception set. The caller does not need to hold an attached thread state . void PyThread_free_lock ( PyThread_type_lock lock ) ¶ 次に属します: Stable ABI . Destro ...
https://man.mtool.work/python/3.14/c-api/synchronization.html
同期プリミティブ — Python 3.14.8 ドキュメント 8240
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 同期プリミティブ テーマ 自動 ライト ダーク | 同期プリミティブ ¶ The C-API provides a basic mutual exclusion lock. type PyMutex ¶ ... tion where there is no PyObject -- for example, when working with a C type that does not extend or wrap PyObject but still needs to call into the C API in a manner that might lead to deadlocks. The functions and structs used by the macros are exposed ... expansions. Note that the sizes and contents of the structures may change in future Python versions. 注釈 Operations that need to lock two objects at once must use Py_BEGIN_CRITICAL_SECTION2 . You cannot use nested critical sections to lock more tha ... n success, this function returns a lock; on failure, this function returns 0 without an exception set. The caller does not need to hold an attached thread state . void PyThread_free_lock ( PyThread_type_lock lock ) ¶ 次に属します: Stable ABI . Destro ...
https://man.mtool.work/python/3.14/c-api/synchronization.html
Remote debugging attachment protocol — Python 3.14.8 ドキュメント 7789
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Remote debugging attachment protocol テーマ 自動 ライト ダーク | Remote debugging attachment protocol ¶ This protocol enables external tools to at ... er for that container. This weakens the container's isolation and should only be done in low-security environments. If you need to trace a process that you do not own, you will need superuser access or equivalent. This also applies to processes that ... tem call filters. This may work in practice, as would sudo , but this gives the debugging process much more access than it needs and should only be done in low-security environments. Finally, note that a process can only have one tracer at a time. If ... enabling it to be debugged. (An ad-hoc "signature" is just a configuration without any actual cryptographic signature or a need for a certificate or anything else such as an Apple developer program membership.) The following commands will create a fi ...
https://man.mtool.work/python/3.14/howto/remote_debugging.html
Remote debugging attachment protocol — Python 3.14.8 ドキュメント 7789
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Remote debugging attachment protocol テーマ 自動 ライト ダーク | Remote debugging attachment protocol ¶ This protocol enables external tools to at ... er for that container. This weakens the container's isolation and should only be done in low-security environments. If you need to trace a process that you do not own, you will need superuser access or equivalent. This also applies to processes that ... tem call filters. This may work in practice, as would sudo , but this gives the debugging process much more access than it needs and should only be done in low-security environments. Finally, note that a process can only have one tracer at a time. If ... enabling it to be debugged. (An ad-hoc "signature" is just a configuration without any actual cryptographic signature or a need for a certificate or anything else such as an Apple developer program membership.) The following commands will create a fi ...
https://man.mtool.work/python/3.14/howto/remote_debugging.html
4. Windows で Python を使う — Python 3.14.8 ドキュメント 6877
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python のセットアップと利用 » 4. Windows で Python を使う テーマ 自動 ライト ダーク | 4. Windows で Python を使う ¶ このドキュメントは、 Python を Microsoft Wind ... mmands should be available. If you have existing installations of Python, or you have modified your PATH variable, you may need to remove them or undo the modifications. See Troubleshooting for more help with fixing non-working commands. When you fir ... system settings page to add the path. Each Python runtime you install will have its own directory for scripts. These also need to be added to PATH if you want to use them. The Python install manager will be automatically updated to new releases. Thi ... as python3.14.exe or for any installed scripts). These are automatically refreshed on installation of any runtime, but may need to be manually refreshed after installing packages. In addition to the above options, the --target option will extract the ...
https://man.mtool.work/python/3.14/using/windows.html
zipapp --- 実行可能な Python zip アーカイブを管理する — Python 3.14.8 ドキュメ... 6877
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ソフトウェア・パッケージと配布 » zipapp --- 実行可能な Python zip アーカイブを管理する テーマ 自動 ライト ダーク | zipapp --- 実行可 ... value ()) インタープリタの指定 ¶ Note that if you specify an interpreter and then distribute your application archive, you need to ensure that the interpreter used is portable. The Python launcher for Windows supports most common forms of POSIX #! li ... ues to consider: If you use "/usr/bin/env python" (or other forms of the "python" command, such as "/usr/bin/python"), you need to consider that your users may have either Python 2 or Python 3 as their default, and write your code to work under both ... is no way to say "python X.Y or later", so be careful of using an exact version like "/usr/bin/env python3.4" as you will need to change your shebang line for users of Python 3.5, for example. Typically, you should use an "/usr/bin/env python2" or " ...
https://man.mtool.work/python/3.14/library/zipapp.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT