def bit_clone ( bits ) : new = BitSet ( bits . size ) new . ior ( bits ) return new
python how to clone object
Clone a bitset
def bit_clone( bits ):
    """
    Clone a bitset
    """
    new = BitSet( bits.size )
    new.ior( bits )
    return new