Misty on Nostr: Discovered to my horror today that Python's unpacking can unpack characters from ...
Discovered to my horror today that Python's unpacking can unpack characters from strings as though they were arrays.
a, b = "ab”
a #=> "a"
b #=> “b”
Published at
2025-02-18 19:45:07Event JSON
{
"id": "99153d3a81c5dee0dc6a75f75bfb23dff3968114e074612c78f32f45869cf31f",
"pubkey": "17f2e21d51c8d531838bc4df713eac38dbe2b8ba04e40b8d538d211d1cc4ac25",
"created_at": 1739907907,
"kind": 1,
"tags": [
[
"proxy",
"https://digipres.club/users/misty/statuses/114026604613042087",
"activitypub"
]
],
"content": "Discovered to my horror today that Python's unpacking can unpack characters from strings as though they were arrays.\n\na, b = \"ab”\na #=\u003e \"a\"\nb #=\u003e “b”",
"sig": "3352a0383b1ea25d069e53b9b020fdd49a3558e4171ad2f9fc0c981044da2ce36d32aba10158fd7a5f2b46bffcb77085b86e673787746bb3b768445e904e3f53"
}