Pythonic way to condese my array

2006-09-19 Thread Dean Card
I have a list of dictionaries where each dictionary defines, among other things, a row and column number. So, my list might look like this: [{'row':1, 'column':1, otherdata}, {'row':1, 'column':2, 'otherdata}...] This data is passed to flash and used there to create a grid of objects that are

Re: PIL Image transform

2006-08-11 Thread Dean Card
This looks like a correct description of the sources: In Image.py: elif method == PERSPECTIVE: # change argument order to match implementation data = (data[2], data[0], data[1], data[5], data[3], data[4], data[6], data[7]) and then in

PIL Image transform

2006-08-08 Thread Dean Card
Okay, so here is the situation. I have need to do some on-the-fly image creation. I have everything working great except for the last part of it, applying a perspective type transform to the image. The transform will take a rectangular 2D image and transform it to a 3D representation in 2D.

Easy question on minidom

2006-06-17 Thread Dean Card
I am using minidom to parse a 20,000 line XML file. I have a few instances where the number of child nodes of a particular node can be variable in number. To access them I am doing something like the following... xmldoc = minidom.parseString(r) results = xmldoc.childNodes[0] for myNode in