Export to GitHub

pybing - issue #5

count is None in BingResultSet.__iter__


Posted on Apr 14, 2011 by Grumpy Dog

Program crashes running

query = WebQuery('<key>', query="coffee") results = query.execute() print len(results) for r in results: print repr(r.description)

Traceback (most recent call last): File "bingsearch.py", line 10, in <module> for r in results: File "/Users/[me]/.pylibs/pybing-0.1dev_r34-py2.6.egg/pybing/resultset.py", line 120, in iter query = query.set_offset(query.offset + query.count)

I'm nearly positive the problem is that line 107:

query.set_count(constants.MAX_PAGE_SIZE)

should instead read

query = query.set_count(constants.MAX_PAGE_SIZE)

Bitten by your funny immutable setter!

Comment #1

Posted on Nov 8, 2011 by Massive Bird

This issue was closed by revision r35.

Status: Fixed

Labels:
Type-Defect Priority-Medium