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
        
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to