per page, with , order by , clip by
Results of 1 - 10 of about 39 for cycles (0.007 sec.)
graphlib --- グラフ構造を操作する機能 — Python 3.14.8 ドキュメント 13642
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » graphlib --- グラフ構造を操作する機能 テーマ 自動 ライト ダーク | graphlib --- グラフ構造を操作する機能 ¶ ソースコード: ... を呼び出した後にこのメソッドを呼び出すと、 ValueError を送出します。 prepare ( ) ¶ Mark the graph as finished and check for cycles in the graph. If any cycle is detected, CycleError will be raised, but get_ready() can still be used to obtain as many nod ... es as possible until cycles block more progress. After a call to this function, the graph cannot be modified, and therefore no more nodes can be added ... raised ValueError . is_active ( ) ¶ Returns True if more progress can be made and False otherwise. Progress can be made if cycles do not block the resolution and either there are still nodes ready that haven't yet been returned by TopologicalSorter.get ...
https://man.mtool.work/python/3.14/library/graphlib.html
graphlib --- グラフ構造を操作する機能 — Python 3.14.8 ドキュメント 12436
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » graphlib --- グラフ構造を操作する機能 テーマ 自動 ライト ダーク | graphlib --- グラフ構造を操作する機能 ¶ ソースコード: ... を呼び出した後にこのメソッドを呼び出すと、 ValueError を送出します。 prepare ( ) ¶ Mark the graph as finished and check for cycles in the graph. If any cycle is detected, CycleError will be raised, but get_ready() can still be used to obtain as many nod ... es as possible until cycles block more progress. After a call to this function, the graph cannot be modified, and therefore no more nodes can be added ... raised ValueError . is_active ( ) ¶ Returns True if more progress can be made and False otherwise. Progress can be made if cycles do not block the resolution and either there are still nodes ready that haven't yet been returned by TopologicalSorter.get ...
https://man.mtool.work/python/3.14/library/graphlib.html
Command-line introspection tools — Python 3.14.8 ドキュメント 9554
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Command-line introspection tools テーマ 自動 ライト ダーク | Command-li ... graph is unusual and typically indicates a programming error: $ python -m asyncio pstree 12345 ERROR: await-graph contains cycles - cannot print a tree! cycle: Task-2 → Task-3 → Task-2 ps PID ¶ Display a flat table of all pending tasks in the process P ... aiting task's stack, name, and ID, if any. This subcommand prints all tasks regardless of whether the await graph contains cycles: $ python -m asyncio ps 12345 tid task id task name coroutine stack awaiter chain awaiter name awaiter id ---------------- ...
https://man.mtool.work/python/3.14/library/asyncio-tools.html
Command-line introspection tools — Python 3.14.8 ドキュメント 9554
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Command-line introspection tools テーマ 自動 ライト ダーク | Command-li ... graph is unusual and typically indicates a programming error: $ python -m asyncio pstree 12345 ERROR: await-graph contains cycles - cannot print a tree! cycle: Task-2 → Task-3 → Task-2 ps PID ¶ Display a flat table of all pending tasks in the process P ... aiting task's stack, name, and ID, if any. This subcommand prints all tasks regardless of whether the await graph contains cycles: $ python -m asyncio ps 12345 tid task id task name coroutine stack awaiter chain awaiter name awaiter id ---------------- ...
https://man.mtool.work/python/3.14/library/asyncio-tools.html
itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 9319
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効 ... 1 210 pool = tuple ( iterable ) n = len ( pool ) r = n if r is None else r if r > n : return indices = list ( range ( n )) cycles = list ( range ( n , n - r , - 1 )) yield tuple ( pool [ i ] for i in indices [: r ]) while n : for i in reversed ( range ... ( r )): cycles [ i ] -= 1 if cycles [ i ] == 0 : indices [ i :] = indices [ i + 1 :] + indices [ i : i + 1 ] cycles [ i ] = n - i else : ... j = cycles [ i ] indices [ i ], indices [ - j ] = indices [ - j ], indices [ i ] yield tuple ( pool [ i ] for i in indices [: r ]) br ...
https://man.mtool.work/python/3.14/library/itertools.html
itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 9319
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効 ... 1 210 pool = tuple ( iterable ) n = len ( pool ) r = n if r is None else r if r > n : return indices = list ( range ( n )) cycles = list ( range ( n , n - r , - 1 )) yield tuple ( pool [ i ] for i in indices [: r ]) while n : for i in reversed ( range ... ( r )): cycles [ i ] -= 1 if cycles [ i ] == 0 : indices [ i :] = indices [ i + 1 :] + indices [ i : i + 1 ] cycles [ i ] = n - i else : ... j = cycles [ i ] indices [ i ], indices [ - j ] = indices [ - j ], indices [ i ] yield tuple ( pool [ i ] for i in indices [: r ]) br ...
https://man.mtool.work/python/3.14/library/itertools.html
Type Object Structures — Python 3.14.8 ドキュメント 8833
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Type Object Structures テーマ 自動 ライト ダーク | Type Object Structu ... ガベージコレクションをサポートする にあります。 The tp_traverse pointer is used by the garbage collector to detect reference cycles. A typical implementation of a tp_traverse function simply calls Py_VISIT() on each of the instance's members that are Pyt ... ISIT ( self -> dict ); return 0 ; } Note that Py_VISIT() is called only on those members that can participate in reference cycles. Although there is also a self->key member, it can only be NULL or a Python string and therefore cannot be part of a refer ... ter to a clear function. The signature is: int tp_clear ( PyObject * ); The purpose of this function is to break reference cycles that are causing a cyclic isolate so that the objects can be safely destroyed. A cleared object is a partially destroyed o ...
https://man.mtool.work/python/3.14/c-api/typeobj.html
2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 8833
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s ... sing Custom , and subclasses may add arbitrary attributes. For any of those two reasons, Custom objects can participate in cycles: >>> import custom3 >>> class Derived ( custom3 . Custom ): pass ... >>> n = Derived () >>> n . some_attribute = n To allo ... Init ( & custom_module ); } First, the traversal method lets the cyclic GC know about subobjects that could participate in cycles: static int Custom_traverse ( PyObject * op , visitproc visit , void * arg ) { CustomObject * self = ( CustomObject * ) op ... t = visit ( self -> last , arg ); if ( vret != 0 ) return vret ; } return 0 ; } For each subobject that can participate in cycles, we need to call the visit() function, which is passed to the traversal method. The visit() function takes as arguments th ...
https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
A Conceptual Overview of asyncio — Python 3.14.8 ドキュメント 8833
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » A Conceptual Overview of asyncio テーマ 自動 ライト ダーク | A Conceptual Overview of asyncio ¶ This HOWTO article seeks to help you build a sturd ... ards. If there are no more jobs pending execution, the event loop is smart enough to rest and avoid needlessly wasting CPU cycles, and will come back when there's more work to be done. Effective execution relies on jobs sharing well and cooperating; a ... ve, rendering the overall event loop approach rather useless. import asyncio # This creates an event loop and indefinitely cycles through # its collection of jobs. event_loop = asyncio . new_event_loop () event_loop . run_forever () Asynchronous functi ... , not to mention it's somewhat cheating to use asyncio.sleep when showcasing how to implement it! As usual, the event loop cycles through its tasks, giving them control and receiving control back when they pause or finish. The watcher_task , which runs ...
https://man.mtool.work/python/3.14/howto/a-conceptual-overview-of-asyncio.html
Type Object Structures — Python 3.14.8 ドキュメント 8833
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Type Object Structures テーマ 自動 ライト ダーク | Type Object Structu ... ガベージコレクションをサポートする にあります。 The tp_traverse pointer is used by the garbage collector to detect reference cycles. A typical implementation of a tp_traverse function simply calls Py_VISIT() on each of the instance's members that are Pyt ... ISIT ( self -> dict ); return 0 ; } Note that Py_VISIT() is called only on those members that can participate in reference cycles. Although there is also a self->key member, it can only be NULL or a Python string and therefore cannot be part of a refer ... ter to a clear function. The signature is: int tp_clear ( PyObject * ); The purpose of this function is to break reference cycles that are causing a cyclic isolate so that the objects can be safely destroyed. A cleared object is a partially destroyed o ...
https://man.mtool.work/python/3.14/c-api/typeobj.html
PREV 1 2 3 4 NEXT