39 words, 1 min read
β οΈ This post links to an external website. β οΈ
(With thanks to Seth Larson for taking me down this rabbit hole.)
I always assumed that Python's
str.splitlines()split strings by "universal newlines", i.e.,\n,\r, and\r\n.But it turns out it does a lot more than that.
continue reading on yossarian.net
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.