Results of 1 - 10 of about 61 for track (0.007 sec.)
- Command-line introspection tools — Python 3.14.8 ドキュメント 12988
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Command-line introspection tools テーマ 自動 ライト ダーク | Command-li
...a task hierarchy suitable for inspection and prints its process ID: example.py ¶ import asyncio import os async def play ( track ): await asyncio . sleep ( 3600 ) print ( f "? Finished: { track } " ) async def album ( name , tracks ): async with async...io . TaskGroup () as tg : for track in tracks : tg . create_task ( play ( track ), name = track ) async def main (): print ( f "PID: { os . getpid () } " ) as...sleep -> play TaskGroup._aexit -> TaskGroup.__aexit__ -> album TMBTE 0x10a439d70 関連キーワード asyncio task process async track tg name tools python inspect graph def album create introspection code py without commands import 目次 Command-line intros... - https://man.mtool.work/python/3.14/library/asyncio-tools.html
- Command-line introspection tools — Python 3.14.8 ドキュメント 12988
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Command-line introspection tools テーマ 自動 ライト ダーク | Command-li
...a task hierarchy suitable for inspection and prints its process ID: example.py ¶ import asyncio import os async def play ( track ): await asyncio . sleep ( 3600 ) print ( f "? Finished: { track } " ) async def album ( name , tracks ): async with async...io . TaskGroup () as tg : for track in tracks : tg . create_task ( play ( track ), name = track ) async def main (): print ( f "PID: { os . getpid () } " ) as...sleep -> play TaskGroup._aexit -> TaskGroup.__aexit__ -> album TMBTE 0x10a439d70 関連キーワード asyncio task process async track tools inspect graph album create introspection code without commands import play print tracks TaskGroup main Sundowning Co... - https://man.mtool.work/python/3.14/library/asyncio-tools.html
- multiprocessing.shared_memory --- プロセス間で直接アクセス可能な共有メモリ — Py... 11770
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing.shared_memory --- プロセス間で直接アクセス可能な共有メモリ テーマ 自動 ライト ダーク | multiprocessing.s
...ion and copying of data. class multiprocessing.shared_memory. SharedMemory ( name = None , create = False , size = 0 , * , track = True ) ¶ Create an instance of the SharedMemory class for either creating a new shared memory block or attaching to an e...e larger or equal to the size requested. When attaching to an existing shared memory block, the size parameter is ignored. track ( bool ) -- When True , register the shared memory block with a resource tracker process on platforms where the OS does no...t do this automatically. The resource tracker ensures proper cleanup of the shared memory even if all other processes with access to the memory exit without doing so.... - https://man.mtool.work/python/3.14/library/multiprocessing.shared_memory.html
- multiprocessing.shared_memory --- プロセス間で直接アクセス可能な共有メモリ — Py... 11089
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing.shared_memory --- プロセス間で直接アクセス可能な共有メモリ テーマ 自動 ライト ダーク | multiprocessing.s
...ion and copying of data. class multiprocessing.shared_memory. SharedMemory ( name = None , create = False , size = 0 , * , track = True ) ¶ Create an instance of the SharedMemory class for either creating a new shared memory block or attaching to an e...e larger or equal to the size requested. When attaching to an existing shared memory block, the size parameter is ignored. track ( bool ) -- When True , register the shared memory block with a resource tracker process on platforms where the OS does no...t do this automatically. The resource tracker ensures proper cleanup of the shared memory even if all other processes with access to the memory exit without doing so.... - https://man.mtool.work/python/3.14/library/multiprocessing.shared_memory.html
- 循環参照ガベージコレクションをサポートする — Python 3.14.8 ドキュメント 9001
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » 循環参照ガベージコレクションをサポートする テーマ 自動 ライト ダーク |
...ct_GC_New or PyObject_GC_NewVar . 他のコンテナへの参照が入るかもしれないフィールドが全て初期化されたら、すぐに PyObject_GC_Track() を呼び出さなければなりません。 同様に、オブジェクトのメモリ解放関数も以下の二つの規則に適合しなければなりません: 他のコン...テナを参照しているフィールドを無効化する前に、 PyObject_GC_UnTrack() を呼び出さなければなりません。 オブジェクトのメモリは PyObject_GC_Del() で解放しなければなりません。 警告 If a type adds...e resized object of type TYPE* (refers to any C type) or NULL on failure. op must be of type PyVarObject * and must not be tracked by the collector yet. newsize must be of type Py_ssize_t . void PyObject_GC_Track ( PyObject * op ) ¶ 次に属します: Stab... - https://man.mtool.work/python/3.14/c-api/gcsupport.html
- 循環参照ガベージコレクションをサポートする — Python 3.14.8 ドキュメント 9001
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » 循環参照ガベージコレクションをサポートする テーマ 自動 ライト ダーク |
...ct_GC_New or PyObject_GC_NewVar . 他のコンテナへの参照が入るかもしれないフィールドが全て初期化されたら、すぐに PyObject_GC_Track() を呼び出さなければなりません。 同様に、オブジェクトのメモリ解放関数も以下の二つの規則に適合しなければなりません: 他のコン...テナを参照しているフィールドを無効化する前に、 PyObject_GC_UnTrack() を呼び出さなければなりません。 オブジェクトのメモリは PyObject_GC_Del() で解放しなければなりません。 警告 If a type adds...e resized object of type TYPE* (refers to any C type) or NULL on failure. op must be of type PyVarObject * and must not be tracked by the collector yet. newsize must be of type Py_ssize_t . void PyObject_GC_Track ( PyObject * op ) ¶ 次に属します: Stab... - https://man.mtool.work/python/3.14/c-api/gcsupport.html
- What's new in Python 3.14 — Python 3.14.8 ドキュメント 8132
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's new in Python 3.14 テーマ 自動 ライト ダーク | What's new in Python 3.14 ¶ エディタ : Adam Turner と Hugo van Kemenade この記事では
...hat tasks are pending, and how coroutines are chained together. For example given this code: import asyncio async def play_track ( track ): await asyncio . sleep ( 5 ) print ( f '? Finished: { track } ' ) async def play_album ( name , tracks ): async...with asyncio . TaskGroup () as tg : for track in tracks : tg . create_task ( play_track ( track ), name = track ) async def main (): async with asyncio . TaskGroup () a...able and pickleable . (Contributed by Serhiy Storchaka in gh-125767 .) コマンドラインと環境 ¶ The import time flag can now track modules that are already loaded ('cached'), via the new -X importtime=2 . When such a module is imported, the self and cum... - https://man.mtool.work/python/3.14/whatsnew/3.14.html
- What's new in Python 3.14 — Python 3.14.8 ドキュメント 8132
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's new in Python 3.14 テーマ 自動 ライト ダーク | What's new in Python 3.14 ¶ エディタ : Adam Turner と Hugo van Kemenade この記事では
...hat tasks are pending, and how coroutines are chained together. For example given this code: import asyncio async def play_track ( track ): await asyncio . sleep ( 5 ) print ( f '? Finished: { track } ' ) async def play_album ( name , tracks ): async...with asyncio . TaskGroup () as tg : for track in tracks : tg . create_task ( play_track ( track ), name = track ) async def main (): async with asyncio . TaskGroup () a...able and pickleable . (Contributed by Serhiy Storchaka in gh-125767 .) コマンドラインと環境 ¶ The import time flag can now track modules that are already loaded ('cached'), via the new -X importtime=2 . When such a module is imported, the self and cum... - https://man.mtool.work/python/3.14/whatsnew/3.14.html
- unittest.mock --- 入門 — Python 3.14.8 ドキュメント 7610
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- 入門 テーマ 自動 ライト ダーク | unittest.mock --- 入門 ¶ Added in version 3.3. Mock を使う ¶ Mock p
...gicMock ( name = 'foo' ) >>> mock <MagicMock name='foo' id='...'> >>> mock . method <MagicMock name='foo.method' id='...'> Tracking all calls ¶ メソッドの複数回の呼び出しをトラックしたいことがあります。 mock_calls 属性は、そのモックの子属性やさらにその..._calls == expected True However, parameters to calls that return mocks are not recorded, which means it is not possible to track nested calls where the parameters used to create ancestors are important: >>> m = Mock () >>> m . factory ( important = Tr...oble ... fooble () ... <Mock name='mock.module.fooble()' id='...'> >>> mock . module . fooble . assert_called_once_with () Tracking order of calls and less verbose call assertions ¶ The Mock class allows you to track the order of method calls on your... - https://man.mtool.work/python/3.14/library/unittest.mock-examples.html
- unittest.mock --- 入門 — Python 3.14.8 ドキュメント 7610
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- 入門 テーマ 自動 ライト ダーク | unittest.mock --- 入門 ¶ Added in version 3.3. Mock を使う ¶ Mock p
...gicMock ( name = 'foo' ) >>> mock <MagicMock name='foo' id='...'> >>> mock . method <MagicMock name='foo.method' id='...'> Tracking all calls ¶ メソッドの複数回の呼び出しをトラックしたいことがあります。 mock_calls 属性は、そのモックの子属性やさらにその..._calls == expected True However, parameters to calls that return mocks are not recorded, which means it is not possible to track nested calls where the parameters used to create ancestors are important: >>> m = Mock () >>> m . factory ( important = Tr...oble ... fooble () ... <Mock name='mock.module.fooble()' id='...'> >>> mock . module . fooble . assert_called_once_with () Tracking order of calls and less verbose call assertions ¶ The Mock class allows you to track the order of method calls on your... - https://man.mtool.work/python/3.14/library/unittest.mock-examples.html