It's input is the query result, so there is no looping when the function is called. It is called only once.
Then why save part of the result in an instance attribute? Just return all of the results as a tuple.
-- DaveA -- https://mail.python.org/mailman/listinfo/python-list