Bug on Python2.3.4 [FreeBSD]?

Uwe Mayer merkosh at hadiko.de
Fri Aug 12 16:03:17 EDT 2005


Friday 12 August 2005 22:12 pm paolino wrote:
[...]
>>>>>f = open('test', 'a+')
>>>>>f.read()
>> 
>> ''
>> 
>> -> append mode does not read from file, *not ok*
>> 
>> 
> This is right IMO 'a' is appending so seek(-1)

True, thank you.
f.tell() shows the file pointer is at EOF. On my Debian Linux (unstable),
Python 2.3.4 +2.3.5, however, the file pointer is at the beginning of the
file.
Is that behaviour intended?

Ciao
Uwe
        



More information about the Python-list mailing list