[New-bugs-announce] [issue2730] file readline w+ memory dumps
tempname
report at bugs.python.org
Thu May 1 12:35:03 CEST 2008
New submission from tempname <partner55296497 at aravensoft.com>:
the following code actually dumps the heap into the temp file... very
strange. Make sure the file doesn't exist before running the script.
Only the list of numbers should be written to the file, but alot of junk
is added.
x = str(range(10))
f = open('c:\\temp.txt', 'w+')
f.write(x)
for i in range(10):
y = f.readline()
print repr(y)
f.close()
----------
components: None
messages: 66032
nosy: tempname1234
severity: normal
status: open
title: file readline w+ memory dumps
type: security
versions: Python 2.5
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2730>
__________________________________
More information about the New-bugs-announce
mailing list