Breaking up (lines) is hard to do
Summary
This post explores the complexity of splitting multi-line text in Python, focusing on how various line-ending conventions are handled. It traces ASCII, Unicode, and bidirectional context to explain which code points Python treats as line breaks, and why this matters for robust text processing. A valuable read for developers dealing with cross-platform newline handling and Unicode text.