Ancestors

Toot

Written by Ned Batchelder on 2024-12-06 at 16:40

Splitting a string once in #Python: .split() has maxsplit=, but .partition() can be better:

=> View attached media

=> More informations about this toot | More toots from nedbat@hachyderm.io

Descendants

Written by Thomas Barrett πŸ‘¨β€πŸ’» on 2024-12-06 at 22:55

@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

Written by Paolo Melchiorre on 2024-12-07 at 14:48

@nedbat TIL '.partition()' 😊

=> More informations about this toot | More toots from paulox@fosstodon.org

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113606868233380626
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
269.523186 milliseconds
Gemini-to-HTML Time
0.532985 milliseconds

This content has been proxied by September (ba2dc).