what happens when the file begin read is too big for all lines to be read with "readlines()"

MrJean1 MrJean1 at gmail.com
Sat Nov 19 11:09:33 EST 2005


Just try it, it is not that hard ... ;-)

/Jean Brouwers

PS) Here is what happens on Linux:

  $ limit vmemory 10000
  $ python
  ...
  >>> s = file(<bugfile>).readlines()
  Traceback (most recent call last):
    File "<stdin>", line 1 in ?
  MemoryError
  >>>




More information about the Python-list mailing list