[issue3104] overzealous garbage collector (dict)
Antoine Pitrou
report at bugs.python.org
Sat Jun 14 16:37:23 CEST 2008
Antoine Pitrou <pitrou at free.fr> added the comment:
> The original text file was an IRC log. Shoving Charles Dickens' "Great
> Expectations" 17 times in a text file and then parsing it doesn't show
> this problem for some weird reason.
I'd say the "weird reason" is probably a bug in your script. For example
the following appears very dubious:
for o in self.wlist:
if len(o) > 0xFF:
o = o[:0xFF]
fp.write(chr(len(o)))
fp.write(o)
for s in self.wlist[o]:
In any case, the idea that one of Python's built-in containers would
silently *drop* values (rather than segfault or produce a MemoryError)
is in itself quite unbelievable, due to the way those containers funciton.
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3104>
_______________________________________
More information about the Python-bugs-list
mailing list