Bugs item #1488779, was opened at 2006-05-15 11:09
Message generated for change (Comment added) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1488779&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Platform-specific
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: muimi (muimi)
Assigned to: Nobody/Anonymous (nobody)
Summary: appended file on Windows reads arbitrary data

Initial Comment:
checked with versions 2.3 & 2.4.2 on Windows 2000 & XP

reading an appended file without resetting its
current position causes reading/writing of arbitrary data.
this appears to be related to the MS Visual Studio C
library.

def bug(filename):
    af=open(filename,'a+')
    af.write('\nlast line?')
    print af.tell()
    d=af.read() # this causes a read/write problem
    print len(d), af.tell()
    af.close()

----------------------------------------------------------------------

>Comment By: Georg Brandl (gbrandl)
Date: 2006-05-15 19:26

Message:
Logged In: YES 
user_id=849994

Dupe of #1488717.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1488779&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to