Python2.6がグローバル関数のリストに next() を追加したことに気付きました。
Retrieve the next item from the iterator by calling its next() method.
が与えられた場合
default
、イテレータが使い尽くされた場合は返され、そうでない場合StopIteration
は発生します。
これを追加した動機は何ですか?できnext(iterator)
ないことと、StopIteration を処理iterator.next()
する句でできることは何ですか?except