

def set_attr(self, obj, attr, value):
    try:
        obj.attributes.add(attr, value)
        return ('\nCreated attribute %s/%s = %s' % (obj.name, attr, repr(value)))
    except SyntaxError:
        return '\n{RCritical Python syntax error in your value. Only primitive Python structures are allowed.\nYou also need to use correct Python syntax. Remember especially to put quotes around all strings inside lists and dicts.{n'

dataset/ETHPy150Open evennia/evennia/evennia/commands/default/building.py CmdSetAttribute.set_attr/original