def __iter__ ( self ) : for value , count in self . counts ( ) : for _ in range ( count ) : yield value
iterate over all but first element python
Iterate through all elements .
def __iter__(self):
		"""Iterate through all elements.

		Multiple copies will be returned if they exist.
		"""
		for value, count in self.counts():
			for _ in range(count):
				yield value