Add a small comment to dotdict.

This commit is contained in:
Ethan Dalool 2020-03-03 01:57:50 -08:00
parent 4a0c0f4b48
commit 895ae3265d

View file

@ -1,3 +1,8 @@
'''
Overall, I like types.SimpleNamespace. But I decided to make dotdict because:
1. SimpleNamespace is a cumbersome name to type and to look at.
2. I wanted my class to support default values.
'''
from voussoirkit import sentinel
NO_DEFAULT = sentinel.Sentinel('NO_DEFAULT')