Newbie: question regarding references and class relationships
Terry Jan Reedy
tjreedy at udel.edu
Mon Jun 10 15:54:24 EDT 2013
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.
More information about the Python-list
mailing list