ParentFull threadsamwillis·They could add a __bool__ method to the class the returns false when that level of the namespace is empty. That would allow: if a.b.c: print("c:", a.b.c)View on HN