Skip to main content
4 events
when toggle format what by license comment
May 11, 2012 at 15:18 comment added Mike Pennington @LucasJones, I will try that. Thank you for following up
May 11, 2012 at 14:31 comment added Lucas Jones OK. The behaviour of the iterators changed recently. Site.questions.no_answers, Site.questions.recent_questions and Site.questions.unanswered will go on forever. The pagesize= argument actually tells the API how many items to return on each iteration - it will just keep iterating until it's returned all the pages. I agree this is not the most useful behaviour for this case, and I'm now planning to add a cleaner interface. For now, though, change your loop to for qq in ii(...).items, which will only iterate through the questions on the first page, of size pagesize.
May 7, 2012 at 18:06 comment added Lucas Jones I have a feeling I may have fixed this bug in the latest version of the code, but that I haven't pushed it to PyPI. I'll try and push the latest code up; in the meantime you can get it straight from the repository at github.com/lucjon/Py-StackExchange.
May 2, 2012 at 8:58 history answered Mike Pennington CC BY-SA 3.0