Re: recursively change values in list of lists

2008-08-24 Thread mblume
Am Sun, 24 Aug 2008 15:17:46 +0100 schrieb Carson Farmer: > Dear list, > > I'm sure this is a relatively trivial problem, but I have been unable to > find any good examples/explanations on how to do this, so here goes: > > I have multi-polygon object, which is simply a list of polygons, where > e

Re: recursively change values in list of lists

2008-08-24 Thread Maric Michaud
Le Sunday 24 August 2008 16:17:46 Carson Farmer, vous avez écrit : > Dear list, > > I'm sure this is a relatively trivial problem, but I have been unable > to find any good examples/explanations on how to do this, so here > goes: > > I have multi-polygon object, which is simply a list of polygons,

Re: recursively change values in list of lists

2008-08-24 Thread castironpi
On Aug 24, 9:17 am, "Carson Farmer" <[EMAIL PROTECTED]> wrote: > Dear list, > > I'm sure this is a relatively trivial problem, but I have been unable > to find any good examples/explanations on how to do this, so here > goes: > > I have multi-polygon object, which is simply a list of polygons, wher

Re: recursively change values in list of lists

2008-08-24 Thread Medardo Rodriguez (Merchise Group)
On Sun, Aug 24, 2008 at 10:17 AM, Carson Farmer <[EMAIL PROTECTED]> wrote: > So in the end, the only thing that should be changed is the values, > not the lists themselves... clear as mud? > > Any hints, and/or suggestions are greatly appreciated, You gave the solution yourself. I don't know if y

Re: recursively change values in list of lists

2008-08-24 Thread twyk
I see no recursion in the problem as stated. Can a polygon contain another polygon? I can see that if you had ... e_1 = [(0,0),(3,0)] e_2 = [(3,0),(2,3)] e_3 = [(2,3),(0,0)] triangle_1 = [e_1,e_2,e_3] w_1 = [triangle_1,] ... you might want to make a copy of triangle_1 that was offset

recursively change values in list of lists

2008-08-24 Thread Carson Farmer
Dear list, I'm sure this is a relatively trivial problem, but I have been unable to find any good examples/explanations on how to do this, so here goes: I have multi-polygon object, which is simply a list of polygons, where each polygon is a list of lines, where each line is a list of points. Wha