how to iterate through the object returned by nearby_users()?
I tried putting it to a list but that didn't work
nearby_users() now returns a generator. Use next() to retrieve the next item inside it. https://docs.python.org/2/library/functions.html#next
I'm getting stuck on waiting for a response from the api when I call next(users). I modified sessions.py to this:
print("before response) response = self._api.recs(limit) print("after response")
Then when I go to test it I never get to the second print statement
users = session.nearby_users() #executes fine next(users)
I encountered the same bug. I cannot see neaby_users at all.
One way to loop a generator (im new to python so please correct me if im wrong) :
users = session.matches()
for user in users: