[issue35095] Implement pathlib.Path.append_bytes and pathlib.Path.append_text

2022-01-24 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: -pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue35095] Implement pathlib.Path.append_bytes and pathlib.Path.append_text

2022-01-24 Thread Nuno André
Change by Nuno André : -- nosy: +nuno nosy_count: 3.0 -> 4.0 pull_requests: +29041 pull_request: https://github.com/python/cpython/pull/3811 ___ Python tracker ___ _

[issue35095] Implement pathlib.Path.append_bytes and pathlib.Path.append_text

2022-01-24 Thread Keelung Yang
Keelung Yang added the comment: @pitrou Firstly, I can't agree with `it is quite uncommon to open a file in append mode`. It should be depended to users and their application scenes. @pablogsal Secondly, I think `Path.write_*(, append=False)` is better then adding new APIs, as discussed in

[issue35095] Implement pathlib.Path.append_bytes and pathlib.Path.append_text

2018-10-29 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks @pitrou for the feedback! As you think this will not be that useful, I will close the issue and the proposal PR. -- stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue35095] Implement pathlib.Path.append_bytes and pathlib.Path.append_text

2018-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: First, it is quite uncommon to open a file in append mode. Second, when you open in append mode, often you will gradually append (such as for a logfile), so a single method call isn't effective. So I think this does not solve an important use case. ---

[issue35095] Implement pathlib.Path.append_bytes and pathlib.Path.append_text

2018-10-29 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue35095] Implement pathlib.Path.append_bytes and pathlib.Path.append_text

2018-10-28 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +9512 stage: -> patch review ___ Python tracker ___ ___ Python

[issue35095] Implement pathlib.Path.append_bytes and pathlib.Path.append_text

2018-10-28 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Right now we have: Path.read_bytes Path.read_text Path.write_bytes Path.write_text as opening the file, appending something and closing the file is also a very typical operation to do it would be nice to have: Path.append_bytes Path.append_text --