This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author erik.bray
Recipients erik.bray, neologix, pitrou, r.david.murray
Date 2013-08-29.20:44:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
>> Whereas the behavior of O_APPEND causes an automatic seek to the end
>> before any write().

> True, but IIRC some systems seek on open() and some systems seek just before write().

I figured that workaround that seeks to the end on open was an attempt to normalize behavior between different systems, and seems to me like a reasonable compromise to support systems that somehow don't support append.

But a better compromise I think would be to seek to the beginning of the file and modify fileio_write and friends to always seek to the end before a write if the file was opened in append mode. This would be more in line with the POSIX behavior.

I have no idea on what systems O_APPEND isn't supported, but I figured they must exist because someone put an #ifdef in there once :)
Date User Action Args
2013-08-29 20:44:36erik.braysetrecipients: + erik.bray, pitrou, r.david.murray, neologix
2013-08-29 20:44:36erik.braysetmessageid: <>
2013-08-29 20:44:36erik.braylinkissue18876 messages
2013-08-29 20:44:35erik.braycreate