Python dataset_client.list_items() not iterable
# apify-platform
f
I'm developing an actor in Python. I'm trying to call an actor using [this code sample](https://docs.apify.com/sdk/python/docs/concepts/interacting-with-other-actors#actor-call). I'm facing an issue retrieving the data. I'm getting an error that items is not iterable. According to the [API doc](https://docs.apify.com/sdk/python/reference/class/Dataset#list_items) it should be a list, which should be iterable.
a
message has been deleted
a
@fabian just advanced to level 1! Thanks for your contributions! 🎉
f
So The [Python SDK documentation](https://docs.apify.com/sdk/python/reference/class/Dataset#list_items) mentions that list_items returns a list, but it actually returns a DatasetItemsListPage object instead. I recommend adding a line to the [code sample to call actor in python](https://docs.apify.com/sdk/python/docs/concepts/interacting-with-other-actors#actor-call-task):
Copy code
# transform DatasetItemList into an iterable list:
ResultList = items.items.items