On 6/10/2013 9:18 AM, Rui Maciel wrote:
class Model: points = [] lines = []
Unless you actually need keep the points and lines ordered by entry order, or expect to keep sorting them by whatever, sets may be better than lists. Testing that a point or line is in the model will be faster, as will deleting one by its identify.
-- http://mail.python.org/mailman/listinfo/python-list