Dualtronic on Nostr: Starting to think #Python's duck typing is a trap. Something looks like a ...
Starting to think #Python's duck typing is a trap. Something looks like a dictionary... until it isn't. Something else is some kind of iterable; doesn't matter which kind... until it does. More like wishy-washy typing, am I right?
Published at
2025-10-05 07:52:36 UTCEvent JSON
{
"id": "10f2aa8c4190eb0dae8e1059eb1da000edf19b6d1e1e69fe018a59e5d8539cbb",
"pubkey": "9a3f8c0030216fed4af730a7f0fcf95df14669b9b7a92e237acbed5c49e7f728",
"created_at": 1759650756,
"kind": 1,
"tags": [
[
"proxy",
"https://wandering.shop/@felix/115320471955440049",
"web"
],
[
"t",
"python"
],
[
"proxy",
"https://wandering.shop/users/felix/statuses/115320471955440049",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://wandering.shop/users/felix/statuses/115320471955440049",
"pink.momostr"
],
[
"-"
]
],
"content": "Starting to think #Python's duck typing is a trap. Something looks like a dictionary... until it isn't. Something else is some kind of iterable; doesn't matter which kind... until it does. More like wishy-washy typing, am I right?",
"sig": "6566ab0438c21466df5a44f46c3ea39f67cbfd7bb985f504b7b688728265547f6141484bcb4793db2ac5903aeb31d9fd497ac5097c6a671e8b776b98837b2353"
}