def _quoted_split(s, separator=',', quotes='"'):
    splits = []
    partial = []
    in_quote = None
    for c in s:
        if in_quote:
            if c == in_quote:
                in_quote = None
        else:
            if c in quotes:
                in_quote = c
        if not in_quote and c in separator:
            if partial:
                splits.append(''.join(partial))
            partial = []
        else:
            partial.append(c)
    if partial:
        splits.append(''.join(partial))
    return splits
perform an action on the world that changes it's internal state (maybe stochastically)
dataset/ETHPy150Open openstack/ooi/ooi/wsgi/parsers.py/_quoted_split--crossover with--dataset/ETHPy150Open pybrain/pybrain/pybrain/rl/environments/twoplayergames/twoplayergame.py/CompetitiveEnvironment.performAction