[Python-Dev] RFC: PEP 460: Add bytes % args and bytes.format(args) to Python 3.5 (original) (raw)
Steven D'Aprano steve at pearwood.info
Sun Jan 12 02:10:46 CET 2014
- Previous message: [Python-Dev] RFC: PEP 460: Add bytes % args and bytes.format(args) to Python 3.5
- Next message: [Python-Dev] RFC: PEP 460: Add bytes % args and bytes.format(args) to Python 3.5
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, Jan 11, 2014 at 07:22:30PM +0000, MRAB wrote:
>with open("outfile.pdf", "w", encoding="latin-1") as f: > f.write(pdf) > [snip] The second example won't work because you're forgetting about the handling of line endings in text mode.
So I did! Thank you for the correction.
-- Steven
- Previous message: [Python-Dev] RFC: PEP 460: Add bytes % args and bytes.format(args) to Python 3.5
- Next message: [Python-Dev] RFC: PEP 460: Add bytes % args and bytes.format(args) to Python 3.5
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]