code: def frombits(cls, bits='0'):
          
          if len(bits) > cls._len:
              raise ValueError('too many bits %r' % (bits,))
          return cls.fromint(bits[::-1], 2)
docs: Create a set from binary string.