Ned Batchelder on Nostr: Splitting a string once in #Python: .split() has maxsplit=, but .partition() can be ...
Splitting a string once in #Python: .split() has maxsplit=, but .partition() can be better:
Published at
2024-12-06 16:40:36Event JSON
{
"id": "05ebb513228425adf5d0e7f07254907993a598cd3a29b8b1ac9c1a0848ed8a1a",
"pubkey": "3c1a5dbc82cfc12f65f6bd9e283d71bd4a6f1ca853640666cfd5c856037806b1",
"created_at": 1733503236,
"kind": 1,
"tags": [
[
"t",
"python"
],
[
"imeta",
"url https://media.hachyderm.io/media_attachments/files/113/606/867/963/003/024/original/e748b71dd1c5e745.png",
"m image/png",
"dim 1200x727",
"blurhash U17Bcu?vHjb[ICbpkRMy8zWmovV]Djo@aeVw"
],
[
"proxy",
"https://hachyderm.io/users/nedbat/statuses/113606868115965258",
"activitypub"
]
],
"content": "Splitting a string once in #Python: .split() has maxsplit=, but .partition() can be better:\n\nhttps://media.hachyderm.io/media_attachments/files/113/606/867/963/003/024/original/e748b71dd1c5e745.png",
"sig": "7daa19aded4815a87fb55e49892a33cc609196de00c884bf73a8056cb3746518941007cb52f235096dd09421d01a86c93cf7c3340caa0770aeef0e27748d7be2"
}