Re: Newbie queue question

2009-06-24 Thread Чеширский Кот
1. say me dbf files count? 2. why dbf ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie queue question

2009-06-21 Thread Jure Erznožnik
On Jun 21, 9:43 am, Чеширский Кот wrote: > 1. say me dbf files count? > 2. why dbf ? It was just a test. It was the most compatible format I could get between Python and the business application I work with without using SQL servers and such. Otherwise it's of no consequence. The final applicatio

Re: Newbie queue question

2009-06-19 Thread Piet van Oostrum
> Jure Erznožnik (JE) wrote: >JE> Digging further, I found this: >JE> >http://www.oreillynet.com/onlamp/blog/2005/10/does_python_have_a_concurrency.html >JE> Looking up on this info, I found this: >JE> >http://docs.python.org/c-api/init.html#thread-state-and-the-global-interpreter-lock >J

Re: Newbie queue question

2009-06-19 Thread Piet van Oostrum
> Jure Erznožnik (JE) wrote: >JE> Digging further, I found this: >JE> >http://www.oreillynet.com/onlamp/blog/2005/10/does_python_have_a_concurrency.html >JE> Looking up on this info, I found this: >JE> >http://docs.python.org/c-api/init.html#thread-state-and-the-global-interpreter-lock >J

Re: Newbie queue question

2009-06-19 Thread Tim Harig
On 2009-06-19, =?windows-1252?Q?Jure_Erzno=9Enik?= wrote: > If this is correct, no amount of threading would ever help in Python > since only one core / CPU could *by design* ever be utilized. Except > for the code that accesses *no* functions / memory at all. Don't multithread...multiprocess.

Re: Newbie queue question

2009-06-19 Thread Jure Erznožnik
Digging further, I found this: http://www.oreillynet.com/onlamp/blog/2005/10/does_python_have_a_concurrency.html Looking up on this info, I found this: http://docs.python.org/c-api/init.html#thread-state-and-the-global-interpreter-lock If this is correct, no amount of threading would ever help in

Re: Newbie queue question

2009-06-19 Thread Jure Erznožnik
I've done some further testing on the subject: I also added some calculations in the main loop to see what effect they would have on speed. Of course, I also added the same calculations to the single threaded functions. They were simple summary functions, like average, sum, etc. Almost no interact

Re: Newbie queue question

2009-06-18 Thread Jure Erznožnik
Thanks for the suggestions. I've been looking at the source code of threading support objects and I saw that non-blocking requests in queues use events, while blocking requests just use InterlockedExchange. So plain old put/get is much faster and I've managed to confirm this today with further test

Re: Newbie queue question

2009-06-18 Thread Piet van Oostrum
> Jure Erznožnik (JE) wrote: >JE> Hi, >JE> I'm pretty new to Python (2.6) and I've run into a problem I just >JE> can't seem to solve. >JE> I'm using dbfpy to access DBF tables as part of a little test project. >JE> I've programmed two separate functions, one that reads the DBF in main >JE> t