def __init__(self, auto=None, length=32, offset=None, **kwargs): #def __init__(self , val): BitArray.__init__(self, auto, length, offset, **kwargs) self.d_gray = "" self._setgray()