nucleic / atom

Memory efficient Python objects
https://atom.readthedocs.io/en/latest/
Other
361 stars 50 forks source link

atomdict setdefault is broken with inner type validated container #196

Closed MatthieuDartiailh closed 1 year ago

MatthieuDartiailh commented 1 year ago

atomdict.setdefault returns the default value passed in which is incorrect if we have a value validator that coerce the value one way or another. We should access the value after setting the default to fix this.