2 GTSAM Copyright 2010-2020, Georgia Tech Research Corporation, 3 Atlanta, Georgia 30332-0415 6 See LICENSE for the license information 8 Various common utilities. 16 Get the chain of namespaces from the lowest to highest for the given object. 19 obj: Object of type Namespace, Class, InstantiatedClass, or Enum. 23 while ancestor
and ancestor.name:
24 namespaces = [ancestor.name] + namespaces
25 ancestor = ancestor.parent
26 return [
''] + namespaces
def collect_namespaces(obj)