+
+/* Matches python dict.get(key, [default]) */
+PyObject* BPy_IDGroup_Get(BPy_IDProperty *self, PyObject *args)
+{
+ IDProperty *idprop;
+ char *key;
+ PyObject* def = Py_None;
+
+ if (!PyArg_ParseTuple(args, "s|O:get", &key, &def))
+ return NULL;
+
+ idprop= IDP_GetPropertyFromGroup(self->prop, key);
+ if (idprop) {
+ PyObject* pyobj = BPy_IDGroup_WrapData(self->id, idprop);
+ if (pyobj)
+ return pyobj;
+ }
+
+ Py_INCREF(def);
+ return def;
+}
+