Re: Conversion from GFA Basic to Python for SpeedTest

2002-05-11 Thread Patricia J. Hawkins
> "MS" == Matthew Sherborne <[EMAIL PROTECTED]> writes: MS> Attached is a small set of tests that go about the problem in different MS> ways, but I couldn't get anywhere near the GBA time. I think that GBA gets MS> around it by forward checking that the certain members of the array aren'

Re: Conversion from GFA Basic to Python for SpeedTest

2002-05-11 Thread ed . hopkins
Sorry guys this is way over my head. I do know the GFA Basic was run in Windows. Being so new to ActivePython I thought that the numerical extension would be ideal for this sort of thing. All your responses have been much appreciated. I do like Python and will be sticking with it. Look

Re: Conversion from GFA Basic to Python for SpeedTest

2002-05-11 Thread Matthew Sherborne
I tried it with numpy and it was faster without it. I think most of the time consumed is in getting the memory from the operating system. I tried it in Delphi but kept on getting memory probs. Couldn't get it to finish. Perhaps the best way to approach it with a new generator or simply a method

RE: urllib seems to die or hang

2002-05-11 Thread Richard Kemp
Found out that I'm not the only one - Google's usenet search turned up a bunch of people that have had this problem, and the resolution is to make use of a great utility on the Vaults, called timeoutsocket.py.  Import the code, set a timeout of say 20 seconds, and urllib won't hang indefinit