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 serhiy.storchaka
Recipients barneygale, keelung-yang, serhiy.storchaka
Date 2022-01-31.07:03:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643612619.84.0.681423016992.issue46554@roundup.psfhosted.org>
In-reply-to
Content
There is nothing wrong with writing two lines of code. And two lines of code may be more readable than one line of code. New method or parameter has a cost -- core developers need to maintain it, update documentation and tests if they conflict with new features, user will need to learn about it, remember differences between Python versions and implementations of different Path-like objects, it can be only used after dropping support of older Python versions, and it may be a source of common mistakes.

If you think that it is so important to use a single call for appending to a file, you can create a module which provides functions append_text() and append_bytes(). They could be used even in Python versions older than 3.11.
History
Date User Action Args
2022-01-31 07:03:39serhiy.storchakasetrecipients: + serhiy.storchaka, barneygale, keelung-yang
2022-01-31 07:03:39serhiy.storchakasetmessageid: <1643612619.84.0.681423016992.issue46554@roundup.psfhosted.org>
2022-01-31 07:03:39serhiy.storchakalinkissue46554 messages
2022-01-31 07:03:39serhiy.storchakacreate