It takes an existing sequence and returns an iterator that yields the items within the sequence in reverse order, from last to first. As you saw within the Iterators chapter, a for loop can act on an iterator. StopIteration exception, the for loop ends gracefully. Python will name it on each reference to any attribute or technique identify (except special technique names, since that will cause an unpleasant infinite loop). Python will call it solely after searching for the attribute in all the t...
1 مشاهدة
0 الإعجابات