Paul van der Laan on Nostr: #Python question: since dictionaries are ordered in Python 3 now, are there any ...
#Python question: since dictionaries are ordered in Python 3 now, are there any reasons to still use OrderedDicts? I'm updating some old code that was written in Python 2 originally.
Published at
2025-01-15 08:10:40Event JSON
{
"id": "57dc139f4502776373ac0ce95a3ad844fda3119102151d4b1046f0b5183e69d6",
"pubkey": "1eaa9fdc9f696b186cd9c3285e9c17b13f8a301fc0d91343bbd9475383fe2909",
"created_at": 1736928640,
"kind": 1,
"tags": [
[
"t",
"python"
],
[
"proxy",
"https://typo.social/users/paulvanderlaan/statuses/113831355387757764",
"activitypub"
]
],
"content": "#Python question: since dictionaries are ordered in Python 3 now, are there any reasons to still use OrderedDicts? I'm updating some old code that was written in Python 2 originally.",
"sig": "54ad49d18c944a2094db322eb715e33213e8caa00323bc4733accb5912f679174092fbd12a6bb18c0520252af1450df3f2a367eb5d810d6f5a0f44489e0c8518"
}