This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author markmat
Recipients
Date 2006-07-19.02:46:19
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Also the gc behavior is consistent with the
documentation, I beleave it is wrong. I think, that Gc
should be called automatically before any memory
allocation is raised.

Example 1:
for i in range(700): 
   a = [range(5000000)]
   a.append(a)
   print i

This example will crash on any any PC with less then
20Gb RAM. On my PC (Windows 2000, 256Mb) it crashes at
i==7.
Also, this example can be fixed by addition of a call
to gc.collect() in the loop, in real cases it may be
unreasonable. 
History
Date User Action Args
2007-08-23 14:41:24adminlinkissue1524938 messages
2007-08-23 14:41:24admincreate