per page, with , order by , clip by
Results of 1 - 10 of about 135 for iter (0.007 sec.)
collections.abc --- コンテナの抽象基底クラス — Python 3.14.8 ドキュメント 12829
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » collections.abc --- コンテナの抽象基底クラス テーマ 自動 ライト ダーク | collections.abc --- コンテナの抽象基底クラス ¶ ... herit >>> issubclass ( D , Sequence ) True >>> isinstance ( D (), Sequence ) True この例では、クラス D は __contains__ , __iter__ , __reversed__ を定義する必要がありません。なぜなら in 演算子 , the 反復 ロジック, および reversed() 関数は自動的に __ge ... rectly recognizable by the presence of the required methods (unless those methods have been set to None ): class E : def __iter__ ( self ): ... def __next__ ( self ): ... >>> issubclass ( E , Iterable ) True >>> isinstance ( E (), Iterable ) True 複雑 ... 定のメソッド名の存在からだけではインターフェースの推測ができません。たとえば、あるクラスが __getitem__ , __len__ , および __iter__ を提供するというだけでは、 Sequence と Mapping を区別するには不十分です。 Added in version 3.9: これらの抽象クラスは [] ...
https://man.mtool.work/python/3.14/library/collections.abc.html
collections.abc --- コンテナの抽象基底クラス — Python 3.14.8 ドキュメント 12829
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » collections.abc --- コンテナの抽象基底クラス テーマ 自動 ライト ダーク | collections.abc --- コンテナの抽象基底クラス ¶ ... herit >>> issubclass ( D , Sequence ) True >>> isinstance ( D (), Sequence ) True この例では、クラス D は __contains__ , __iter__ , __reversed__ を定義する必要がありません。なぜなら in 演算子 , the 反復 ロジック, および reversed() 関数は自動的に __ge ... rectly recognizable by the presence of the required methods (unless those methods have been set to None ): class E : def __iter__ ( self ): ... def __next__ ( self ): ... >>> issubclass ( E , Iterable ) True >>> isinstance ( E (), Iterable ) True 複雑 ... 定のメソッド名の存在からだけではインターフェースの推測ができません。たとえば、あるクラスが __getitem__ , __len__ , および __iter__ を提供するというだけでは、 Sequence と Mapping を区別するには不十分です。 Added in version 3.9: これらの抽象クラスは [] ...
https://man.mtool.work/python/3.14/library/collections.abc.html
itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 9110
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効 ... シーケンスを作成します。同じことを Python では map() と count() を組合せて map(f, count()) という形で実現できます。 General iterators: イテレータ 引数 結果 使用例 accumulate() p [,func] p0, p0+p1, p0+p1+p2, ... accumulate([1,2,3,4,5]) → 1 3 6 10 15 ba ... ('ABCDEFG', n=3) → ABC DEF G chain() p, q, ... p0, p1, ... plast, q0, q1, ... chain('ABC', 'DEF') → A B C D E F chain.from_iterable() iterable p0, p1, ... plast, q0, q1, ... chain.from_iterable(['ABC', 'DEF']) → A B C D E F compress() data, selectors ... false() predicate, seq elements of seq where predicate(elem) fails filterfalse(lambda x: x<5, [1,4,6,3,8]) → 6 8 groupby() iterable[, key] key(v) の値でグループ化したサブイテレータ groupby(['A','B','DEF'], len) → (1, A B) (3, DEF) islice() seq, [star ...
https://man.mtool.work/python/3.14/library/itertools.html
itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 9110
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効 ... シーケンスを作成します。同じことを Python では map() と count() を組合せて map(f, count()) という形で実現できます。 General iterators: イテレータ 引数 結果 使用例 accumulate() p [,func] p0, p0+p1, p0+p1+p2, ... accumulate([1,2,3,4,5]) → 1 3 6 10 15 ba ... ('ABCDEFG', n=3) → ABC DEF G chain() p, q, ... p0, p1, ... plast, q0, q1, ... chain('ABC', 'DEF') → A B C D E F chain.from_iterable() iterable p0, p1, ... plast, q0, q1, ... chain.from_iterable(['ABC', 'DEF']) → A B C D E F compress() data, selectors ... false() predicate, seq elements of seq where predicate(elem) fails filterfalse(lambda x: x<5, [1,4,6,3,8]) → 6 8 groupby() iterable[, key] key(v) の値でグループ化したサブイテレータ groupby(['A','B','DEF'], len) → (1, A B) (3, DEF) islice() seq, [star ...
https://man.mtool.work/python/3.14/library/itertools.html
関数型プログラミング HOWTO — Python 3.14.8 ドキュメント 8870
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 関数型プログラミング HOWTO テーマ 自動 ライト ダーク | 関数型プログラミング HOWTO ¶ Author : A. M. Kuchling Release : 0.32 この文書では、関数型スタ ... グラムを実装するのにピッタリな Python の機能を見てまわることにしましょう。まず関数型プログラミングという概念を紹介したあと、 iterator や generator のような言語機能、および itertools や functools といった関連するライブラリモジュールを見ることにします。 ... じめに ¶ この章は関数型プログラミングの基本概念を説明します; Python の言語機能についてだけ知りたい人は、次の章の イテレータ (iterator) まで飛ばしてください。 プログラミング言語とは問題を分解するものですが、各言語がサポートする分解方法にはいくつかの種類 ... くると、新しいプログラムも、既存の関数を調整して少し今回に特化した関数を書くだけで組み立てられるようになります。 イテレータ (iterator) ¶ まずは関数型スタイルのプログラムを書く際の基礎となる重要な Python 機能から見ていきましょう: イテレータです。 イテレ ...
https://man.mtool.work/python/3.14/howto/functional.html
関数型プログラミング HOWTO — Python 3.14.8 ドキュメント 8870
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 関数型プログラミング HOWTO テーマ 自動 ライト ダーク | 関数型プログラミング HOWTO ¶ Author : A. M. Kuchling Release : 0.32 この文書では、関数型スタ ... グラムを実装するのにピッタリな Python の機能を見てまわることにしましょう。まず関数型プログラミングという概念を紹介したあと、 iterator や generator のような言語機能、および itertools や functools といった関連するライブラリモジュールを見ることにします。 ... じめに ¶ この章は関数型プログラミングの基本概念を説明します; Python の言語機能についてだけ知りたい人は、次の章の イテレータ (iterator) まで飛ばしてください。 プログラミング言語とは問題を分解するものですが、各言語がサポートする分解方法にはいくつかの種類 ... くると、新しいプログラムも、既存の関数を調整して少し今回に特化した関数を書くだけで組み立てられるようになります。 イテレータ (iterator) ¶ まずは関数型スタイルのプログラムを書く際の基礎となる重要な Python 機能から見ていきましょう: イテレータです。 イテレ ...
https://man.mtool.work/python/3.14/howto/functional.html
イテレータプロトコル (iterator protocol) — Python 3.14.8 ドキュメント 8304
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 抽象オブジェクトレイヤ (Abstract Objects Layer) » イテレータプロトコル (iterator protocol) テーマ 自動 ライト ダーク | イテレータ ... プロトコル (iterator protocol) ¶ イテレータを扱うための固有の関数は二つあります。 int PyIter_Check ( PyObject * 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 ( ... バージョン 3.10 より). Return non-zero if the object o provides the AsyncIterator protocol, and 0 otherwise. This function always succeeds. Added in version 3.10. int PyIter_NextItem ( PyObject * iter ...
https://man.mtool.work/python/3.14/c-api/iter.html
イテレータプロトコル (iterator protocol) — Python 3.14.8 ドキュメント 8304
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 抽象オブジェクトレイヤ (Abstract Objects Layer) » イテレータプロトコル (iterator protocol) テーマ 自動 ライト ダーク | イテレータ ... プロトコル (iterator protocol) ¶ イテレータを扱うための固有の関数は二つあります。 int PyIter_Check ( PyObject * 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 ( ... バージョン 3.10 より). Return non-zero if the object o provides the AsyncIterator protocol, and 0 otherwise. This function always succeeds. Added in version 3.10. int PyIter_NextItem ( PyObject * iter ...
https://man.mtool.work/python/3.14/c-api/iter.html
abc --- 抽象基底クラス — Python 3.14.8 ドキュメント 7979
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » abc --- 抽象基底クラス テーマ 自動 ライト ダーク | abc --- 抽象基底クラス ¶ ソースコード: Lib/abc.py こ ... として、次の ABC 定義の例を見てください: class Foo : def __getitem__ ( self , index ): ... def __len__ ( self ): ... def get_iterator ( self ): return iter ( self ) class MyIterable ( ABC ): @abstractmethod def __iter__ ( self ): while False : yield No ... ne def get_iterator ( self ): return self . __iter__ () @classmethod def __subclasshook__ ( cls , C ): if cls is MyIterable : if any ( "__ ... iter__" in B . __dict__ for B in C . __mro__ ): return True return NotImplemented MyIterable . register ( Foo ) The ABC MyIterable defines the standard iterable method, __iter__() , as an abstract method. The im ...
https://man.mtool.work/python/3.14/library/abc.html
ast --- Abstract syntax trees — Python 3.14.8 ドキュメント 7738
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » ast --- Abstract syntax trees テーマ 自動 ライト ダーク | ast --- Abstract syntax trees ¶ ソースコード: Lib/as ... ion , expr ? value , int simple ) -- use 'orelse' because else is a keyword in target languages | For ( expr target , expr iter , stmt * body , stmt * orelse , string ? type_comment ) | AsyncFor ( expr target , expr iter , stmt * body , stmt * orelse ... Not | UAdd | USub cmpop = Eq | NotEq | Lt | LtE | Gt | GtE | Is | IsNot | In | NotIn comprehension = ( expr target , expr iter , expr * ifs , int is_async ) excepthandler = ExceptHandler ( expr ? type , identifier ? name , stmt * body ) attributes ( ... d in version 3.8. リテラル ¶ class ast. Constant ( value , kind ) ¶ A constant value. The value attribute of the Constant literal contains the Python object it represents. The values represented can be instances of str , bytes , int , float , complex ...
https://man.mtool.work/python/3.14/library/ast.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT