qd_error_t qd_entity_set_list(qd_entity_t *entity, const char *attribute) { CHECK(qd_entity_clear(entity, attribute)); return qd_entity_set_py(entity, attribute, PyList_New(0)); }
qd_error_t qd_entity_clear(qd_entity_t *entity, const char *attribute) { return qd_entity_set_py(entity, attribute, 0); }
qd_error_t qd_entity_set_boolp(qd_entity_t *entity, const char *attribute, const bool *value) { return qd_entity_set_py(entity, attribute, value ? PyBool_FromLong(*value) : 0); }
qd_error_t qd_entity_set_longp(qd_entity_t *entity, const char* attribute, const long *value) { return qd_entity_set_py(entity, attribute, value ? PyInt_FromLong(*value) : 0); }
qd_error_t qd_entity_set_string(qd_entity_t *entity, const char* attribute, const char *value) { return qd_entity_set_py(entity, attribute, value ? PyString_FromString(value) : 0); }
qd_error_t qd_entity_set_map(qd_entity_t *entity, const char *attribute) { //CHECK(qd_entity_clear(entity, attribute)); return qd_entity_set_py(entity, attribute, PyDict_New()); }