Event JSON
{
"id": "cb52437d1540ec73e4b2e2a08afe79e732fbade64f2469e5d1f0fdf558eec2aa",
"pubkey": "a071462e960207a7a2272a3f59d042e59623bb2217b56f9365cba21e12213e3e",
"created_at": 1712776051,
"kind": 1,
"tags": [
[
"e",
"ca18d6613d7a5bce8a00273781596b6a9272f5c1f83f2deaf0f8be4a5e460d44",
"",
"root"
],
[
"e",
"134b5e554f9dfe486b8c7db94745b177208caed1b2e93f9d62f2a8530c2b39c2",
"",
"reply"
],
[
"p",
"a071462e960207a7a2272a3f59d042e59623bb2217b56f9365cba21e12213e3e"
],
[
"p",
"a07ce7d53a7baeed67f8f5f0876a38259a34607fe25872721b31b6dd8a90c7fc"
],
[
"proxy",
"https://chaos.social/users/scy/statuses/112248491334668146",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://chaos.social/users/scy/statuses/112248491334668146",
"pink.momostr"
]
],
"content": "Well yeah,\n\na\u003cmin?min:a\u003emax?max:a\n\nisn't exactly readable anyway, I'd say.\n\nIn Python, I'd rather write something like\n\nx = min if a \u003c min else (max if a \u003e max else a)\n\nDo note that there are actual min and max functions that can do this, e.g.\n\nx = max(min_val, min(max_val, a))",
"sig": "41084a0c65c3c82313eac5891f50c5c8a20a6f79b9de8a42d8a58b4647ce1d0592aaec41cbcd8e6051428e4ecf607d1878994536479fe0b61f8ee2c7c33b19a1"
}