Splitting a string once in #Python: .split() has maxsplit=, but .partition() can be better:
=> More informations about this toot | More toots from nedbat@hachyderm.io
@nedbat πThat's a good one. Going to have to use this going forward! I definitely see using this on emails, urls, etc.
=> More informations about this toot | More toots from trbarrettjr@crosstalk.tech
@nedbat TIL '.partition()' π
=> More informations about this toot | More toots from paulox@fosstodon.org This content has been proxied by September (ba2dc).Proxy Information
text/gemini