@staticmethod
    def set_by_path(obj, path, value):
        a_path = path.split(".")
        key = a_path.pop()
        for seg in a_path:
            if seg == "": continue
            if obj not in seg: obj[seg] = {}
            obj = obj[seg]
        obj[key] = value
    
    ## @ignore
dataset/ETHPy150Open sakura-internet/saklient.python/saklient/util.py/Util.set_by_path/swapped operands of `not in`