Ancestors

Written by Paul van der Laan on 2025-01-15 at 08:10

[#]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.

=> More informations about this toot | More toots from paulvanderlaan@typo.social

Written by Just van Rossum on 2025-01-15 at 08:35

@paulvanderlaan if “preserve insertion order” is good enough, then there’s no reason to use an OrderedDict.

=> More informations about this toot | More toots from justvanrossum@typo.social

Toot

Written by Paul van der Laan on 2025-01-15 at 09:17

@justvanrossum I figured as much. Thanks.

=> More informations about this toot | More toots from paulvanderlaan@typo.social

Descendants

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113831619288940110
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
253.291175 milliseconds
Gemini-to-HTML Time
0.368218 milliseconds

This content has been proxied by September (3851b).