[Tutor] optimization: faster than for

elis aeris hunter92383 at gmail.com
Sun Jul 1 06:31:04 CEST 2007

x = 0
y = 0
for x in xrange(1,1024,1):
    for y in xrange(1,768,1):
        rgb = image.getpixel((10, 12))

Luke said there is a faster way to do  image.getpixel((10, 12))

so i am still waiting on that,

the above has been improved many times and it's a lot faster than while, I
am trying to find out if there are any more new ways.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070630/df1b8913/attachment-0001.html 

More information about the Tutor mailing list