why am I getting a segmentation fault?
I have a short multi-threaded script that checks web images to make sure they are still there. I get a segmentation fault everytime I run it and I can't figure out why. Writing threaded scripts is new to me so I may be doing something wrong that should be obvious :( google messes up the python code so here is a link to it. http://kracomp.com/~jay/py.txt This is the output of the script. [EMAIL PROTECTED] scripts]$ ./py.py update item set goodImage = 'yes' where productId='12603' update item set goodImage = 'yes' where productId='18272' update item set goodImage = 'yes' where productId='1927' update item set goodImage = 'no' where productId='12709' update item set goodImage = 'yes' where productId='32087' update item set goodImage = 'no' where productId='25803' Segmentation fault Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list
Re: why am I getting a segmentation fault?
Thank you. I made all the changes you recommended and everything seems to be working. -- http://mail.python.org/mailman/listinfo/python-list
Re: why am I getting a segmentation fault?
>### Have you looked in your database to see if the >script has actually >updated item.goodImage? Do you have a test plan? Thank you for the help. Sorry for the messy code. I was under time constraints. I had class, and I was rushing to get this working before class. I should waited a day and read over it before I asked. Sorry again. -- http://mail.python.org/mailman/listinfo/python-list
a quick question about namespaces
in the code below 'print locals()' shows mc2. What is the equivalent way to see the namespace that mc resides in? class myClass: --def func1(self): self.mc = 1 mc2 = 3 print 'in myClass.func1' print 'printing locals' print locals() print Google mungs up the spacing so I put a - in place of spaces. Does anyone know how to get around this spacing issue on google groups? -- http://mail.python.org/mailman/listinfo/python-list