3 ms·
Yes, I think this is how default dict is implemented. The issue here is that the clients have to know the particular default values for each parameter. For me,
by prepend 6y ago
Yes, I think this is how default dict is implemented.
The issue here is that the clients have to know the particular default values for each parameter. For me, it was easier to return a defaultdict where the callers didn’t need to know what default value to pass into their gets.