I updated the code in msdn forum,
I calculated from the end of file
Discover file 4550 takes a long time to run,
Assume it runs a whole day a file, 4550 days I guess need 12 years to finish
full combination if only run at home.
Hope Python sympy can be faster than cmaple in Amazon instance
--
Sorry my calculation is wrong, it should have around 14 billions of
combinations after using program to count.
--
https://mail.python.org/mailman/listinfo/python-list
https://social.msdn.microsoft.com/Forums/vstudio/en-US/5f0a9a51-a256-4671-a5fc-e213949e7204/how-to-refactor-3-nested-for-loop-into-smaller-for-loop-assume-each-of-them-independent?forum=csharpgeneral
since when i dsolve a differential ideal used near 5GB memory for one ideal
, i feel that i need
On Mon, Oct 10, 2016 at 9:40 AM, Marko Rauhamaa wrote:
> Chris Angelico :
>> Yeah, if it's just for progress status. Of course, that does assume
>> that the run() function doesn't have anything particularly costly in
>> it. If it does, well, dis gonna take a while
>
> Dealing with multigigabyt
Chris Angelico :
> Yeah, if it's just for progress status. Of course, that does assume
> that the run() function doesn't have anything particularly costly in
> it. If it does, well, dis gonna take a while
Dealing with multigigabyte data streams is not over the top nowadays.
Marko
--
https:/
On Mon, Oct 10, 2016 at 4:57 AM, BartC wrote:
> On 09/10/2016 18:33, Jussi Piitulainen wrote:
>>
>> Chris Angelico writes:
>>
>>> On Mon, Oct 10, 2016 at 12:26 AM, Dennis Lee Bieber wrote:
{This response is delayed as I'm waiting for the program to complete so
I
can get the run
On 09/10/2016 18:33, Jussi Piitulainen wrote:
Chris Angelico writes:
On Mon, Oct 10, 2016 at 12:26 AM, Dennis Lee Bieber wrote:
{This response is delayed as I'm waiting for the program to complete so I
can get the run time}
{Well... it's been near 24 hours and still merrily scrolling sums on m
Chris Angelico writes:
> On Mon, Oct 10, 2016 at 12:26 AM, Dennis Lee Bieber wrote:
>> {This response is delayed as I'm waiting for the program to complete so I
>> can get the run time}
>> {Well... it's been near 24 hours and still merrily scrolling sums on my
>> console -- so I'm going to kill th
On Mon, Oct 10, 2016 at 12:26 AM, Dennis Lee Bieber
wrote:
> {This response is delayed as I'm waiting for the program to complete so I
> can get the run time}
> {Well... it's been near 24 hours and still merrily scrolling sums on my
> console -- so I'm going to kill the running program}
Eight BIL
Chris Angelico wrote:
Fascinating! What about: except sys.intern('type error') ? Or does
interning of strings not exist yet :)
Even if it was, I don't think there was any guarantee
that the "official" strings representing those exceptions
would be interned.
You were supposed to use the provide
On Sun, 9 Oct 2016 12:53 pm, Chris Angelico wrote:
>> They're caught by identity, though - "except 'type error'" fails to
>> catch TypeError, and vice versa.
>
> Fascinating! What about: except sys.intern('type error') ? Or does
> interning of strings not exist yet :)
>>> intern
Unhandled except
On Sun, 9 Oct 2016 05:45 am, Random832 wrote:
> On Sat, Oct 8, 2016, at 07:29, Steve D'Aprano wrote:
>> The oldest version I have access to is the *extremely* primitive 0.9. Not
>> surprisingly, it doesn't have xrange -- but it lacks a lot of things,
>> including globals(), map(), named exceptions
On Sun, Oct 9, 2016 at 5:45 AM, Random832 wrote:
> On Sat, Oct 8, 2016, at 07:29, Steve D'Aprano wrote:
>> The oldest version I have access to is the *extremely* primitive 0.9. Not
>> surprisingly, it doesn't have xrange -- but it lacks a lot of things,
>> including globals(), map(), named excepti
On Sat, Oct 8, 2016, at 07:29, Steve D'Aprano wrote:
> The oldest version I have access to is the *extremely* primitive 0.9. Not
> surprisingly, it doesn't have xrange -- but it lacks a lot of things,
> including globals(), map(), named exceptions, "" strings ('' is okay),
> exponentiation, and mor
On Sat, Oct 8, 2016, at 06:12, BartC wrote:
> The OP's code however is a good demonstration of how crazy Python's
> original for-range loop was: you need to construct a list of N elements
> just to be able to count to N. How many years was it until xrange was
> introduced?
Python 1.4 had it, an
meInvent bbird writes:
> how to refactor nested for loop into smaller for loop assume each of them
> independent?
>
> because memory is not enough
>
> for ii in range(1,2000):
> for jj in range(1,2000):
> for kk in range(1,2000):
> print run(ii,jj,kk)
n =
On Sat, 8 Oct 2016 09:12 pm, BartC wrote:
> The OP's code however is a good demonstration of how crazy Python's
> original for-range loop was: you need to construct a list of N elements
> just to be able to count to N. How many years was it until xrange was
> introduced?
Python 1.4 (that's 1996)
On 08/10/2016 11:54, Chris Angelico wrote:
On Sat, Oct 8, 2016 at 9:12 PM, BartC wrote:
On 08/10/2016 11:03, Chris Angelico wrote:
On Sat, Oct 8, 2016 at 8:58 PM, meInvent bbird
wrote:
how to refactor nested for loop into smaller for loop assume each of them
independent?
because memory
On Sat, Oct 8, 2016 at 9:12 PM, BartC wrote:
> On 08/10/2016 11:03, Chris Angelico wrote:
>>
>> On Sat, Oct 8, 2016 at 8:58 PM, meInvent bbird
>> wrote:
>>>
>>> how to refactor nested for loop into smaller for loop assume each of them
>>> i
On 08/10/2016 11:03, Chris Angelico wrote:
On Sat, Oct 8, 2016 at 8:58 PM, meInvent bbird wrote:
how to refactor nested for loop into smaller for loop assume each of them
independent?
because memory is not enough
for ii in range(1,2000):
for jj in range(1,2000):
for kk in range(1,2000
On Sat, Oct 8, 2016 at 8:58 PM, meInvent bbird wrote:
> how to refactor nested for loop into smaller for loop assume each of them
> independent?
>
> because memory is not enough
>
> for ii in range(1,2000):
> for jj in range(1,2000):
> for kk in range(1,2000):
>
how to refactor nested for loop into smaller for loop assume each of them
independent?
because memory is not enough
for ii in range(1,2000):
for jj in range(1,2000):
for kk in range(1,2000):
print run(ii,jj,kk)
--
https://mail.python.org/mailman/listinfo/python-list
22 matches
Mail list logo