Hi all,
I'm a beginner to Python, so please bear with me.
Is there a way of guarenteeing that all created threads in a program are
finished before the main program exits? I know that using join() can
guarentee this, but from the test scripts I've run, it seems like join()
also forces each individ
On Fri, Apr 11, 2008 at 3:29 PM, Steve Holden <[EMAIL PROTECTED]> wrote:
> Jonathan Shao wrote:
>
> > Hi all,
> > I'm a beginner to Python, so please bear with me.
> > Is there a way of guarenteeing that all created threads in a program
> > are finis
The project I'm working on is motion detection, involving a bit of image
processing. No worries: no image processing background needed.
Suffice to say that I initially wrote a script that goes through every pixel
of a 320x240 picture (turned into an array using PIL) and performs some
calculatiosn.
I've written up a stripped down version of the code. I apologize for the bad
coding; I am in a bit of a hurry.
import random
import sys
import time
sizeX = 320
sizeY = 240
borderX = 20
borderY = 20
# generates a zero matrix
def generate_zero():
matrix = [[0 for y in range(sizeY)] for x in ra
*Gabriel Genellina* gagsl-py2 at yahoo.com.ar
*Wed Apr 16 08:44:10 CEST 2008*
> Another thing would be to rearrange the loops so the outer one executes
less times; if you know that borderX<--
http://mail.python.org/mailman/listinfo/python-list