Re: Reoedering indexes in list of list

2010-09-28 Thread Toto
heu the zip trick actually works... my mistake! -- http://mail.python.org/mailman/listinfo/python-list

Re: Reoedering indexes in list of list

2010-09-28 Thread Toto
again I want: alias[y][x] returns myList[x][y] > print a[1][0] > '10' > but print l[1][0] > '01' > > notice the indexes  of the list l are inverted... -- http://mail.python.org/mailman/listinfo/python-list

Re: Reoedering indexes in list of list

2010-09-28 Thread Toto
> If your "alias" can be read-only: > alias = zip(*myList) a=[['00','01'],['10','11']] l=zip(*a) print(l) returns... [('00', '10'), ('01', '11')] IS NOT AT ALL WHAT I WANT ;-) What I want is print a[1][0] '10' but print l[1][0] '01' notice the indexes of the list l are inverted... -- h

Reoedering indexes in list of list

2010-09-28 Thread Toto
Hello, I have a list of list assume myList[x][y] is integer I would like to create an alias to that list which I could call this way: alias[y][x] returns myList[x][y] how can I do that ? (python 2.6) (I have a feeling I should use 'property' ;) Thanks, -- -- http://mail.python.org/mailman/list

Python plug-in

2006-03-28 Thread toto
Hi, I'm trying to find some howto, tutorial in order to create a python program that will allow plug-in programming. I've found various tutos on how to write a plug-in for soft A or soft B but none telling me how to do it in my own programs. Do you have any bookmarks ?? Regards, Laurent. -- h

PIL and transparent GIFs

2006-02-01 Thread toto
Hi, Does anybody know how to save an image in GIF format preserving transparent background ?? Here's what I tested : import Image, ImageDraw im = Image.open('/path/to/model.gif') # An image with transparent backgroung draw = ImageDraw.Draw(im) draw.polygon([153,106,186,225,340,193,315,81,304,167