In query(), made explicit that the associated iterator returns None when all results have been retrieved. No change in functionality; this has always been the behavior. I'd prefer raising an exception StopIteration when the result set is exhausted. Backward compatibility prohibits that change. Also, the underlying MySQLdb does return None upon end of results.