Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 31 - 40 of about 53 for iter (0.094 sec.)
26.4. unittest --- ユニットテストフレームワーク — Python 3.6.5 ドキュメント 6727
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... self . assertRaisesRegex ( ValueError , "invalid literal for.*XYZ'$" , int , 'XYZ' ) もしくは: with self ... . assertRaisesRegex ( ValueError , 'literal' ): int ( 'XYZ' ) バージョン 3.1 で追加: assertR ... これには個別のテストと下位のスイートも含まれます。 __iter__ ( ) ¶ TestSuite でグループ化されたテストは反復ア ... クセスできます。 サブクラスは __iter__() をオーバーライドすることで、遅延処理でテストを ...
https://man.plustar.jp/python/library/unittest.html - [similar]
What's New In Python 3.3 — Python 3.6.5 ドキュメント 6727
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... とも出来ます。 単純なイテレータに対して、 yield from iterable は本質的には for item in iterable: yield item ... データは直ちに下層のバイナリ buffer に処理されます。 itertools ¶ accumulate() がユーザ提供二項関数を渡すため ... の複数 Process オブジェクト待ちが可能です。 map() と itertools.starmap() との関係と同じ、既存の multiprocess ... れますが非推奨となりました)。また、 Element クラスの iter 系のメソッドに最適化が施されました (C で再実装され ...
https://man.plustar.jp/python/whatsnew/3.3.html - [similar]
オブジェクトプロトコル (object protocol) — Python 3.6.5 ドキュメント 6623
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... Occurred() は偽を返します。 PyObject * PyObject_GetIter ( PyObject *o ) ¶ Return value: New reference. Pyt ... hon の式 iter(o) と同じです。引数にとったオブジェクトに対する新た ...
https://man.plustar.jp/python/c-api/object.html - [similar]
26.7. 2to3 - Python 2 から 3 への自動コード変換 — Python 3.6.5 ドキュメント 6623
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ¶ 辞書をイテレートするメソッドを修正します。 dict.iteritems() は dict.items() に、 dict.iterkeys() は dic ... t.keys() に、 dict.itervalues() は dict.values() に変換されます。同様に di ... ようにします。例えば、このブロックは L = list ( some_iterable ) L . sort () 次のように変更されます L = sorte ... d ( some_iterable ) import ¶ 暗黙の相対インポート (sibling impor ...
https://man.plustar.jp/python/library/2to3.html - [similar]
10.2. functools --- 高階関数と呼び出し可能オブジェクトの操作 — Python 3.6.5 ド... 6623
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ) , max() , heapq.nlargest() , heapq.nsmallest() , itertools.groupby() など) と共に使用します。この関数は、 ... れる値を返します。 以下はプログラム例です: sorted ( iterable , key = cmp_to_key ( locale . strcoll )) # loc ... ージョン 3.4 で追加. functools. reduce ( function , iterable [ , initializer ] ) ¶ 2 引数の function を ite ... ) を計算します。左引数 x は累計の値で、右引数 y は iterable から取り出した更新値です。オプションの initial ...
https://man.plustar.jp/python/library/functools.html - [similar]
What's New in Python 2.7 — Python 3.6.5 ドキュメント 6623
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... ule> RuntimeError : dictionary changed size during iteration Python 2.x で view メソッドを利用すると、 2to ... django.* のような glob スタイルのパターンをもった iterable を引数として受け取ります。デバッガはパターンの ... 。(Fixed by Pascal Chambon; bpo-6939 .) 新しい関数: itertools.compress(data, selectors) は、2 つのイテレータ ... 素は、 selectors の対応する値が真であれば返されます: itertools . compress ( 'ABCDEF' , [ 1 , 0 , 1 , 0 , 1 , ...
https://man.plustar.jp/python/whatsnew/2.7.html - [similar]
What's New In Python 3.4 — Python 3.6.5 ドキュメント 6623
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... by Christian Hiemes in bpo-11016 .) struct ¶ 関数 iter_unpack と、コンパイル済フォーマットでのメソッド st ... ruct.Struct.iter_unpack() が追加されました。これは、与えられたデータ ... よって置き換えられるはずです。 xml.etree.ElementTree.iterparse() の parser 引数と XMLParser() の html 引数が ... することで、古い振る舞いは復元出来ます ( TestSuite.__iter__() 参照)。 ( bpo-11798 ) unittest がコマンドライン ...
https://man.plustar.jp/python/whatsnew/3.4.html - [similar]
What's New In Python 3.6 — Python 3.6.5 ドキュメント 6623
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... " # nested fields 'result: 12.35' 参考 PEP 498 -- Literal String Interpolation. PEP written and implemente ... ffff_ffff' 参考 PEP 515 -- Underscores in Numeric Literals PEP written by Georg Brandl and Serhiy Storchak ... 用がサポートされました: result = [ i async for i in aiter () if i % 2 ] 加えて、 await 式が全ての内包表記でサ ... y with older versions of the language where random iteration order is still in effect, e.g. Python 3.5). ( ...
https://man.plustar.jp/python/whatsnew/3.6.html - [similar]
一般 Python FAQ — Python 3.6.5 ドキュメント 6534
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python よくある質問 ... '__hash__', '__iadd__', '__imul__', '__init__', '__iter__', '__le__', '__len__', '__lt__', '__mul__', '__n ...
https://man.plustar.jp/python/faq/general.html - [similar]
8.3. collections --- コンテナデータ型 — Python 3.6.5 ドキュメント 6534
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 471), ('in', 451)] class collections. Counter ( [ iterable-or-mapping ] ) ¶ Counter はハッシュ可能なオブジ ... の言語のバッグや多重集合のようなものです。 要素は、 iterable から数え上げられたり、他の mapping (やカウンタ ... c = Counter ( 'gallahad' ) # a new counter from an iterable >>> c = Counter ({ 'red' : 4 , 'blue' : 2 }) # ... +SKIP [('a', 5), ('r', 2), ('b', 2)] subtract ( [ iterable-or-mapping ] ) ¶ 要素から iterable の要素または ...
https://man.plustar.jp/python/library/collections.html - [similar]
PREV 1 2 3 4 5 6 NEXT