Closed iartarisi closed 8 years ago
Make the ResourceCollection class implement the iterator protocol. This is the idiomatic way to iterate in python and doesn't create any suprises.
ResourceCollection
The ResourceCollection.items() method is unchanged (for backwards compatibility). So __iter__ simply calls that for now.
ResourceCollection.items()
__iter__
@mapleoin We think this pull is a great addition to the library and contains sufficient testing. I'm merging this and including it in the next release.
Make the
ResourceCollection
class implement the iterator protocol. This is the idiomatic way to iterate in python and doesn't create any suprises.The
ResourceCollection.items()
method is unchanged (for backwards compatibility). So__iter__
simply calls that for now.