1 """Module providing runtime utility objects to support the Micro/CircuitPython api"""
5 Object supporting CircuitPython-style of static symbols
6 as seen with Direction.OUTPUT, Pull.UP
12 Inspects attributes of the class for instances of the class
13 and returns as key,value pairs mirroring dict#iteritems
16 val = getattr(cls, key)
23 Assumes instance will be found as attribute of own class.
24 Returns dot-subscripted path to instance
25 (assuming absolute import of containing package)
29 if getattr(cls, key) is self:
30 return "{}.{}.{}".format(cls.__module__, cls.__qualname__, key)