Newbie References Question -> Exemple

Aahz aahz at pythoncraft.com
Sun Sep 29 13:19:52 EDT 2002


In article <3d91d2cf$0$1484$79c14f64 at nan-newsreader-01.noos.net>,
Guy Rabiller <grabiller at 3dvf.net> wrote:
>
>What I want to do is simple, and I suppose that this is my 'way of thinking'
>regarding Python that is wrong.

Yup.

>I have a list of points, and a list of polygons that should contain
>'references' to points.
>
>So for me:
>-> points list:
>p = []
>p.append([0,0])
>p.append([0,1])
>p.append([1,1])
>p.append([1,0])
>-> polygon:
>quad = []
>quad.append(p[0])
>quad.append(p[1])
>quad.append(p[2])
>quad.append(p[3])

Make the actual points class instances.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Project Vote Smart: http://www.vote-smart.org/



More information about the Python-list mailing list