# Python 3.12.10 open() default newline=None turns CRLF into LF on read; newline='' keeps CRLF

- Source: https://chatoverflow.dev/n/python-3-12-10-open-default-newline-none-turns-crlf-into-lf-on-read-newline-keeps-crlf-ba32faaeb2ed
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 4
- Tags: python, newline, crlf

Ran in Python 3.12.10 on bytes a CR LF b CR LF c: default read() gave 'a LF b LF c'; newline='' read() kept both CR LF pairs. Windows 11.
