Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 72 for next (0.014 sec.)
10.1. itertools --- 効率的なループ実行のためのイテレータ生成関数 — Python 3.6.5... 12879
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 1 2 6 24 120 it = iter ( iterable ) try : total = next ( it ) except StopIteration : return yield total f ... object () def __iter__ ( self ): return self def __next__ ( self ): while self . currkey == self . tgtkey ... : self . currvalue = next ( self . it ) # Exit on StopIteration self . currk ... : yield self . currvalue try : self . currvalue = next ( self . it ) except StopIteration : return self . ...
https://man.plustar.jp/python/library/itertools.html - [similar]
関数型プログラミング HOWTO — Python 3.6.5 ドキュメント 12248
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » 関数 ... の要素ずつデータを返します。 Python のイテレータは __next__() という、引数を取らず次の要素を返すメソッドを必 ... います。データストリームに要素が残っていない場合、 __next__() は必ず StopIteration 例外を出します。ただし、イ ... : +ELLIPSIS <...iterator object at ...> >>> it . __next__ () # same as next(it) 1 >>> next ( it ) 2 >>> ne ... xt ( it ) 3 >>> next ( it ) Traceback (most recent call last): File "<s ...
https://man.plustar.jp/python/howto/functional.html - [similar]
9. クラス — Python 3.6.5 ドキュメント 10651
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python チュートリア ... ます。このアプローチは他の多重継承のある言語で call-next-method として知られており、単一継承しかない言語の ... 。関数は、コンテナの中の要素に1つずつアクセスする __next__() メソッドが定義されているイテレータオブジェクト ... を返します。これ以上要素が無い場合は、 __next__() メソッドは StopIteration 例外を送出し、その通知 ... を受け for ループは終了します。組み込みの next() 関数を使って __next__() メソッドを直接呼ぶことも ...
https://man.plustar.jp/python/tutorial/classes.html - [similar]
What's New in Python 2.2 — Python 3.6.5 ドキュメント 10483
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... ことです: def __getitem__ ( self , index ): return < next item > __getitem__() はもっと相応しい用途、つまり ... 装出来、イテレータとして振舞いたい拡張型は、 tp_iternext 関数を実装出来ます。 それでは、結局のところイテレー ... は実際どんなでしょうか? これに必要なメソッドは一つ、 next() です (---訳注: Python 3 で __next__ に変更されて ... 取らず、次の値を返します。返すべき値がなくなったら、 next() 呼び出しは StopIteration 例外を送出しなければなり ...
https://man.plustar.jp/python/whatsnew/2.2.html - [similar]
6. 式 (expression) — Python 3.6.5 ドキュメント 9852
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 言語リファレ ... と同じように) そのジェネレータオブジェクトに対して __next__() メソッドが呼ばれたときに遅延評価されます。ただ ... eld 式の値は実行を再開するメソッドに依存します。 __next__() を使用した場合 (一般に for 文や組み込み関数 ne ... 例外を送出する点に注意してください。 generator. __next__ ( ) ¶ ジェネレータ関数の実行を開始するか、最後に ... 実行されたところから再開します。ジェネレータ関数が __next__() メソッドによって再開された時、その時点の yield ...
https://man.plustar.jp/python/reference/expressions.html - [similar]
26.7. 2to3 - Python 2 から 3 への自動コード変換 — Python 3.6.5 ドキュメント 8731
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ます。 ne ¶ 古い不等号の構文 <> を != に変換します。 next ¶ イテレータの next() メソッドの使用を next() 関数 ... に変換します。また next() メソッドを __next__() に変更します。 nonzero ¶ _ ...
https://man.plustar.jp/python/library/2to3.html - [similar]
イテレータプロトコル (iterator protocol) — Python 3.6.5 ドキュメント 8408
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... をサポートする場合に真を返します。 PyObject * PyIter_Next ( PyObject *o ) ¶ Return value: New reference. 反復 ... ) { /* propagate error */ } while ( item = PyIter_Next ( iterator )) { /* do something with item */ ... / ...
https://man.plustar.jp/python/c-api/iter.html - [similar]
27.3. pdb --- Python デバッガ — Python 3.6.5 ドキュメント 8408
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... continue とタイプできます。あるいは、文を step や next を使って一つづつ実行することができます (これらのコ ... ます。 バージョン 3.2 で変更: .pdbrc に continue や next のようなデバッグを続行するコマンドが使用できるよう ... 実行を再開するコマンド (現在のところ continue, step, next, return, jump, quit とそれらの省略形) によって、コ ... のように)。というのも実行を再開すれば (それが単純な next や step であっても) 別のブレークポイントに到達する ...
https://man.plustar.jp/python/library/pdb.html - [similar]
17.2. multiprocessing --- プロセスベースの並列処理 — Python 3.6.5 ドキュメント 8254
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... they will not be automatically unlinked until the next reboot.) 開始方式はメインモジュールの if __name__ ... ze が 1 の場合 imap() メソッドが返すイテレーターの next() メソッドはオプションで timeout パラメーターを持ち ... ます。 next(timeout) は、その結果が timeout 秒以内に返されない ... 81]" it = pool . imap ( f , range ( 10 )) print ( next ( it )) # prints "0" print ( next ( it )) # prints ...
https://man.plustar.jp/python/library/multiprocessing.html - [similar]
16.10. curses --- 文字セル表示を扱うための端末操作 — Python 3.6.5 ドキュメント 8100
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... they are. curses. ungetch ( ch ) ¶ Push ch so the next getch() will return it. 注釈 Only one ch can be pu ... で追加. curses. unget_wch ( ch ) ¶ Push ch so the next get_wch() will return it. 注釈 Only one ch can be ... od so that the contents will be redisplayed by the next window refresh. window. clear ( ) ¶ erase() に似て ... 。 window. clearok ( flag ) ¶ If flag is True , the next call to refresh() will clear the window completely ...
https://man.plustar.jp/python/library/curses.html - [similar]
PREV 1 2 3 4 5 6 7 8 NEXT