def is_binary_string(obj):
    if PY2:
        # Python 2
        return isinstance(obj, str)
    else:
        # Python 3
        return isinstance(obj, bytes)
Add an element to the matrix, checking that the position is unique.
dataset/ETHPy150Open winpython/winpython/winpython/py3compat.py/is_binary_string--crossover with--dataset/ETHPy150Open sahana/eden/modules/s3db/survey.py/survey_DataMatrix.addElement