43 words, 1 min read
(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 onyossarian.net
⚠️ This post links to an external website. ⚠️
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.