Closed bleudev closed 5 months ago
I'd change some things honestly:
- Make indices start at 0 instead of 1
- Getting the
default
attribute in theUDict.get(default=0)
function, not when the UDict is initialised (eg.UDict(default=0)
)
I'd remove the
default
kw arg from theUDict.__init__()
, since if you want to pass in a key nameddefault
, you'll need to do that using a dict instead of keyword args, which can lead to bad code readability.And I'd really change the indices to start from 0 for convenience.
Other than that everything looks good.
No, i don't want change this things
You do you then
Thanks for approval!
Checklist:
closes #1 closes #2 closes #7 closes #8