Re: improving a huge double-for cycle

2008-09-19 Thread Jake Anderson
Bruno Desthuilliers wrote: Alexzive a écrit : Hello there :) , I am a python newbie and need to run following code for a task in an external simulation programm called "Abaqus" which makes use of python to access the mesh (ensamble of nodes with xy coordinates) of a certain geometrical model.

Re: improving a huge double-for cycle

2008-09-18 Thread Jake Anderson
and if IN[i].coordinates[0] == IN[j].coordinates[0] and if IN[i].coordinates[1] == IN[j].coordinates[1]: but no improvements. Many thanks, Alex -- http://mail.python.org/mailman/listinfo/python-list -- Vapour Forge Jake Anderson Project Manager Mobile:   0412 897 125 Email:

Re: Upgrading to DB-API (was Re: Corrupted images ...)

2008-08-13 Thread Jake Anderson
Aahz wrote: In article <[EMAIL PROTECTED]>, Fredrik Lundh <[EMAIL PROTECTED]> wrote: Ouch. Please use parameters instead of explicit escapes and string formatting; Python's not PHP. How would you recommend upgrading an application that is more than ten years old and contains somethin

Re: benchmark

2008-08-06 Thread Jake Anderson
Jack wrote: I know one benchmark doesn't mean much but it's still disappointing to see Python as one of the slowest languages in the test: http://blog.dhananjaynene.com/2008/07/performance-comparison-c-java-python-ruby-jython-jruby-groovy/ -- http://mail.python.org/mailman/listinfo/python-l

Re: very large dictionary

2008-08-06 Thread Jake Anderson
Bruno Desthuilliers wrote: Simon Strobl a écrit : (snip) > I would prefer to be able to use the same type of scripts with data of all sizes, though. Since computers have a limited RAM, this is to remain a wish. You can't obviously expect to deal with terabytes of data like you do with a 1kb

Re: python scalability

2008-07-09 Thread Jake Anderson
Tim Mitchell wrote: Hi All, I work on a desktop application that has been developed using python and GTK (see www.leapfrog3d.com). We have around 150k lines of python code (and 200k+ lines of C). We also have a new project manager with a C# background who has deep concerns about the scalabi

Re: Returning to 'try' block after catching an exception

2008-05-22 Thread Jake Anderson
alex23 wrote: On May 22, 9:13 am, Karlo Lozovina <[EMAIL PROTECTED]> wrote: In case it's not clear what I meant: after executing some_function() exception SomeExcpetion gets risen. Then, in except block I do something to fix whatever is causing the exception and then I would like to go back t