From 895ae3265d083714bbdbb1feccd1235aa3ab6e44 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 3 Mar 2020 01:57:50 -0800 Subject: [PATCH] Add a small comment to dotdict. --- voussoirkit/dotdict.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/voussoirkit/dotdict.py b/voussoirkit/dotdict.py index 4b3a871..ce75a58 100644 --- a/voussoirkit/dotdict.py +++ b/voussoirkit/dotdict.py @@ -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')