Breaking up (lines) is hard to do

· · Aug. 10, 2026, 7:23 p.m.
Summary
This blog post delves into the complexities of handling line breaks in text processing, particularly in Python. It discusses the history of line break representations from ASCII to Unicode, highlighting the various control characters and code points that signify new lines across different systems. The author reviews Python's approach to handling these line breaks, including the nuances of different character sets and Python's implementation of the `splitlines()` function, which recognizes ten different code points that indicate line breaks.
AUTHOR
Sponsored
Zulip logo Zulip
Organized team chat for people who take work seriously. Topic-based threading keeps conversations focused.
Try Zulip
Become a sponsor →
BLOG POST FEATURED ON

Add this plugin to your blog