Re:Performance Analysis of Python's Dict() and {}
by pphysch on Monday January 22, 2024 @04:53PM
(#39096005)
One place where I prefer dict() is where dicts are used as "nested kwargs", e.g. in Django's ORM for passing default values.
this makes it easy to move fields between `defaults` and `kwargs`. Granted, you could achieve the same isomorphism with ** operator, but less readably IMO.
[ Parent
| on HN ]
There are no comments on this comment yet.