MemoryError Numarray

Discussion in 'Python' started by Bernhard Reimar Hoefle, Sep 26, 2005.

  1. I have the following python script:
    #######################################
    from numarray import *

    while 1:
    a=arange(1,300000000)
    b=a*100/100
    del a
    del b
    #######################################

    This script crashes after a few minutes with an error:

    MemoryError: Couldn't allocate requested memory

    How can I avoid python to use new memory space for each loop?
     
    Bernhard Reimar Hoefle, Sep 26, 2005
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andy Rechenberg
    Replies:
    0
    Views:
    572
    Andy Rechenberg
    Aug 27, 2003
  2. Jamie
    Replies:
    0
    Views:
    549
    Jamie
    Nov 27, 2003
  3. Sylvain Thenault
    Replies:
    2
    Views:
    619
    Sylvain Thenault
    Jan 18, 2005
  4. Replies:
    4
    Views:
    360
  5. Stephen G
    Replies:
    0
    Views:
    332
    Stephen G
    Oct 18, 2006
  6. Christoph Krammer

    MemoryError on reading mbox file

    Christoph Krammer, Sep 12, 2007, in forum: Python
    Replies:
    6
    Views:
    590
    Christoph Krammer
    Sep 13, 2007
  7. [BON]
    Replies:
    4
    Views:
    1,050
    Gabriel Genellina
    Dec 31, 2008
  8. Denis L
    Replies:
    13
    Views:
    1,119
    Denis L
    Apr 29, 2009
Loading...