Results of 1 - 10 of about 278 for Next (0.303 sec.)
- itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 10205
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効
...([1,2,3,4,5], operator.mul) → 1 2 6 24 120 iterator = iter ( iterable ) total = initial if initial is None : try : total = next ( iterator ) except StopIteration : return yield total for element in iterator : total = function ( total , element ) yiel...iterables ) ¶ Make an iterator that returns elements from the first iterable until it is exhausted , then proceeds to the next iterable, until all of the iterables are exhausted. This combines multiple data sources into a single iterator. Roughly eq...curr_key = keyfunc ( curr_value ) if curr_key != target_key : return yield curr_value exhausted = True try : curr_value = next ( iterator ) except StopIteration : return curr_key = keyfunc ( curr_value ) while not exhausted : target_key = curr_key c... - https://man.mtool.work/python/3.14/library/itertools.html
- itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 10205
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効
...([1,2,3,4,5], operator.mul) → 1 2 6 24 120 iterator = iter ( iterable ) total = initial if initial is None : try : total = next ( iterator ) except StopIteration : return yield total for element in iterator : total = function ( total , element ) yiel...iterables ) ¶ Make an iterator that returns elements from the first iterable until it is exhausted , then proceeds to the next iterable, until all of the iterables are exhausted. This combines multiple data sources into a single iterator. Roughly eq...curr_key = keyfunc ( curr_value ) if curr_key != target_key : return yield curr_value exhausted = True try : curr_value = next ( iterator ) except StopIteration : return curr_key = keyfunc ( curr_value ) while not exhausted : target_key = curr_key c... - https://man.mtool.work/python/3.14/library/itertools.html
- 関数型プログラミング HOWTO — Python 3.14.8 ドキュメント 8828
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 関数型プログラミング HOWTO テーマ 自動 ライト ダーク | 関数型プログラミング HOWTO ¶ Author : A. M. Kuchling Release : 0.32 この文書では、関数型スタ
...ータは連続データを表現するオブジェクトです; このオブジェクトは一度に一つの要素ずつデータを返します。 Python のイテレータは __next__() という、引数を取らず次の要素を返すメソッドを必ずサポートしています。データストリームに要素が残っていない場合、 __next_...イテレータ化の実験をしてみましょう: >>> L = [ 1 , 2 , 3 ] >>> it = iter ( L ) >>> it <...iterator object at ...> >>> it . __next__ () # same as next(it) 1 >>> next ( it ) 2 >>> next ( it ) 3 >>> next ( it ) Traceback (most recent call last): File "<st...ピーを作ったりする方法はありません。イテレータがオブジェクトとしてそうした追加機能を 持つことはできますが、プロトコルでは __next__() メソッドのことしか指定されていません。ですから関数はイテレータの出力を使い尽くして しまうかもしれませんし、同じストリー... - https://man.mtool.work/python/3.14/howto/functional.html
- 関数型プログラミング HOWTO — Python 3.14.8 ドキュメント 8828
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 関数型プログラミング HOWTO テーマ 自動 ライト ダーク | 関数型プログラミング HOWTO ¶ Author : A. M. Kuchling Release : 0.32 この文書では、関数型スタ
...ータは連続データを表現するオブジェクトです; このオブジェクトは一度に一つの要素ずつデータを返します。 Python のイテレータは __next__() という、引数を取らず次の要素を返すメソッドを必ずサポートしています。データストリームに要素が残っていない場合、 __next_...イテレータ化の実験をしてみましょう: >>> L = [ 1 , 2 , 3 ] >>> it = iter ( L ) >>> it <...iterator object at ...> >>> it . __next__ () # same as next(it) 1 >>> next ( it ) 2 >>> next ( it ) 3 >>> next ( it ) Traceback (most recent call last): File "<st...ピーを作ったりする方法はありません。イテレータがオブジェクトとしてそうした追加機能を 持つことはできますが、プロトコルでは __next__() メソッドのことしか指定されていません。ですから関数はイテレータの出力を使い尽くして しまうかもしれませんし、同じストリー... - https://man.mtool.work/python/3.14/howto/functional.html
- イテレータプロトコル (iterator protocol) — Python 3.14.8 ドキュメント 8480
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 抽象オブジェクトレイヤ (Abstract Objects Layer) » イテレータプロトコル (iterator protocol) テーマ 自動 ライト ダーク | イテレータ
...ect * o ) ¶ 次に属します: Stable ABI (バージョン 3.8 より). Return non-zero if the object o can be safely passed to PyIter_NextItem() and 0 otherwise. This function always succeeds. int PyAIter_Check ( PyObject * o ) ¶ 次に属します: Stable ABI (バージ...t o provides the AsyncIterator protocol, and 0 otherwise. This function always succeeds. Added in version 3.10. int PyIter_NextItem ( PyObject * iter , PyObject * * item ) ¶ 次に属します: Stable ABI (バージョン 3.14 より). Return 1 and set item to a...strong reference of the next value of the iterator iter on success. Return 0 and set item to NULL if there are no remaining values. Return -1 , set ite... - https://man.mtool.work/python/3.14/c-api/iter.html
- What's New in Python 2.2 — Python 3.14.8 ドキュメント 8024
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New in Python 2.2 テーマ 自動 ライト ダーク | What's New in Python 2.2 ¶ 著者 : A.M. Kuchling はじめに ¶ この文書は 2002 年 10 月 1
...al conventions, such as defining __members__ and __methods__ attributes that were lists of names, but often the author of an extension type or a class wouldn't bother to define them. You could fall back on inspecting the __dict__ of an object, but wh...o the descriptor features, written by Guido van Rossum. If my description has whetted your appetite, go read this tutorial next, because it goes into much more detail about the new features while still remaining quite easy to read. 次です。2 つの関連...in obj work is to define a __getitem__() method that looks something like this: def __getitem__ ( self , index ): return < next item > __getitem__() is more properly used to define an indexing operation on an object so that you can write obj[5] to re... - https://man.mtool.work/python/3.14/whatsnew/2.2.html
- What's New in Python 2.2 — Python 3.14.8 ドキュメント 8024
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New in Python 2.2 テーマ 自動 ライト ダーク | What's New in Python 2.2 ¶ 著者 : A.M. Kuchling はじめに ¶ この文書は 2002 年 10 月 1
...al conventions, such as defining __members__ and __methods__ attributes that were lists of names, but often the author of an extension type or a class wouldn't bother to define them. You could fall back on inspecting the __dict__ of an object, but wh...o the descriptor features, written by Guido van Rossum. If my description has whetted your appetite, go read this tutorial next, because it goes into much more detail about the new features while still remaining quite easy to read. 次です。2 つの関連...in obj work is to define a __getitem__() method that looks something like this: def __getitem__ ( self , index ): return < next item > __getitem__() is more properly used to define an indexing operation on an object so that you can write obj[5] to re... - https://man.mtool.work/python/3.14/whatsnew/2.2.html
- イテレータプロトコル (iterator protocol) — Python 3.14.8 ドキュメント 7559
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 抽象オブジェクトレイヤ (Abstract Objects Layer) » イテレータプロトコル (iterator protocol) テーマ 自動 ライト ダーク | イテレータ
...ect * o ) ¶ 次に属します: Stable ABI (バージョン 3.8 より). Return non-zero if the object o can be safely passed to PyIter_NextItem() and 0 otherwise. This function always succeeds. int PyAIter_Check ( PyObject * o ) ¶ 次に属します: Stable ABI (バージ...t o provides the AsyncIterator protocol, and 0 otherwise. This function always succeeds. Added in version 3.10. int PyIter_NextItem ( PyObject * iter , PyObject * * item ) ¶ 次に属します: Stable ABI (バージョン 3.14 より). Return 1 and set item to a...strong reference of the next value of the iterator iter on success. Return 0 and set item to NULL if there are no remaining values. Return -1 , set ite... - https://man.mtool.work/python/3.14/c-api/iter.html
- 9. クラス — Python 3.14.8 ドキュメント 7559
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 9. クラス テーマ 自動 ライト ダーク | 9. クラス ¶ クラスはデータと機能を組み合わせる方法を提供します。 新規にクラスを作成することで、新し
...す。協調的な super() の呼び出しのためにメソッドの解決順序は動的に変更されます。このアプローチは他の多重継承のある言語で call-next-method として知られており、単一継承しかない言語の super 呼び出しよりも強力です。 動的順序付けが必要なのは、すべての多重継承...す。裏では for 文はコンテナオブジェクトに対して iter() 関数を呼んでいます。関数は、コンテナの中の要素に1つずつアクセスする __next__() メソッドが定義されているイテレータオブジェクトを返します。これ以上要素が無い場合は、 __next__() メソッドは StopIterati...on 例外を送出し、その通知を受け for ループは終了します。組み込みの next() 関数を使って __next__() メソッドを直接呼ぶこともできます; この例は関数がどう働くのかを示しています: >>> s = 'abc' >>> it... - https://man.mtool.work/python/3.14/tutorial/classes.html
- C API Extension Support for Free Threading — Python 3.14.8 ドキュメント 7559
- ナビゲーション 索引 モジュール | 次へ | 前へ | 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
...otherwise importing the extension will raise a warning and enable the GIL at runtime. There are two ways to indicate that an extension module supports running with the GIL disabled depending on whether the extension uses multi-phase or single-phase i...l locking in the free-threaded build. For example, the PyList_Append() will lock the list before appending an item. PyDict_Next ¶ A notable exception is PyDict_Next() , which does not lock the dictionary. You should use Py_BEGIN_CRITICAL_SECTION to p...concurrently modified: Py_BEGIN_CRITICAL_SECTION ( dict ); PyObject * key , * value ; Py_ssize_t pos = 0 ; while ( PyDict_Next ( dict , & pos , & key , & value )) { ... } Py_END_CRITICAL_SECTION (); Borrowed References ¶ Some C API functions return... - https://man.mtool.work/python/3.14/howto/free-threading-extensions.html