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. Advertising

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:
    480
    Andy Rechenberg
    Aug 27, 2003
  2. Jamie
    Replies:
    0
    Views:
    380
    Jamie
    Nov 27, 2003
  3. Sylvain Thenault
    Replies:
    2
    Views:
    486
    Sylvain Thenault
    Jan 18, 2005
  4. Replies:
    4
    Views:
    298
  5. Stephen G
    Replies:
    0
    Views:
    266
    Stephen G
    Oct 18, 2006
Loading...

Share This Page