Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #109805
| From | MRAB <python@mrabarnett.plus.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: how to solve memory |
| Date | 2016-06-11 01:33 +0100 |
| Message-ID | <mailman.145.1465605243.2306.python-list@python.org> (permalink) |
| References | (1 earlier) <njejs6$ri3$1@reader1.panix.com> <8a1c372e-bd6c-4923-8ae1-8f129ec749e4@googlegroups.com> <njepo0$83e$1@reader1.panix.com> <b2dfb3cb-bc3b-4d97-a3ce-ffa80e0c51f6@googlegroups.com> <f82d995f-17d3-c24c-0610-88e91f540026@mrabarnett.plus.com> |
On 2016-06-11 00:31, meInvent bbird wrote: > it is quite ridiculous, > this time i am sure that i put correct indentation > and add a else statement to make sure recursive call inside the > if statement , it still memory error, > > where is the memory error? > > is itertools.combinations so big for the list? > [snip] How long is initlist? When I ran the code, it said over 100_000 items. How many combinations would there be? Over 10_000_000_000. That's how long the list 'b' would be. You'll need 10s of gigabytes of memory and a lot of patience!
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
how to solve memory meInvent bbird <jobmattcon@gmail.com> - 2016-06-09 17:58 -0700
Re: how to solve memory Michael Torrie <torriem@gmail.com> - 2016-06-09 19:12 -0600
Re: how to solve memory meInvent bbird <jobmattcon@gmail.com> - 2016-06-09 21:59 -0700
Re: how to solve memory Steven D'Aprano <steve@pearwood.info> - 2016-06-11 00:07 +1000
Almost crashing computer, was Re: how to solve memory Peter Otten <__peter__@web.de> - 2016-06-10 16:41 +0200
Re: how to solve memory meInvent bbird <jobmattcon@gmail.com> - 2016-06-10 08:00 -0700
Re: how to solve memory meInvent bbird <jobmattcon@gmail.com> - 2016-06-10 08:23 -0700
Re: how to solve memory meInvent bbird <jobmattcon@gmail.com> - 2016-06-10 16:23 -0700
Re: how to solve memory John Gordon <gordon@panix.com> - 2016-06-10 14:46 +0000
Re: how to solve memory meInvent bbird <jobmattcon@gmail.com> - 2016-06-10 08:08 -0700
Re: how to solve memory John Gordon <gordon@panix.com> - 2016-06-10 16:26 +0000
Re: how to solve memory meInvent bbird <jobmattcon@gmail.com> - 2016-06-10 16:31 -0700
Re: how to solve memory MRAB <python@mrabarnett.plus.com> - 2016-06-11 01:33 +0100
Re: how to solve memory meInvent bbird <jobmattcon@gmail.com> - 2016-06-10 21:43 -0700
Re: how to solve memory meInvent bbird <jobmattcon@gmail.com> - 2016-06-10 22:18 -0700
Re: how to solve memory meInvent bbird <jobmattcon@gmail.com> - 2016-06-10 22:55 -0700
csiph-web