New submission from tempname <[EMAIL PROTECTED]>: 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 <[EMAIL PROTECTED]> <http://bugs.python.org/issue2730> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com