Add a small comment to dotdict.

master
Ethan Dalool 2020-03-03 01:57:50 -08:00
parent 4a0c0f4b48
commit 895ae3265d
1 changed files with 5 additions and 0 deletions

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')