def _to_number(x):
    if isinstance(x, str):
        if '.' == x:
            x = float(x)
        else:
            x = int(x)
    return x
dataset/ETHPy150Open francelabs/datafari/windows/python/Lib/lib-tk/ttk.py/_to_number/operator `in` -> `==`