for (P_PLAYER member = lootlist.first(); member; member = lootlist.next()) {
for (P_PLAYER member = lootlist.first(); member; member = lootlist.next())
static PyObject *wpParty_getAttr(wpParty *self, char *name) {	cParty *party = self->party;	if (!strcmp(name, "leader")) {		return party->leader()->getPyObject();	} else if (!strcmp(name, "members")) {		QPtrList<cPlayer> members = party->members();		PyObject *list = PyList_New(0);		for (P_PLAYER member = members.first(); member; member = members.next()) {			PyList_Append(list, member->getPyObject());		}		return list;	} else if (!strcmp(name, "canidates")) {		QPtrList<cPlayer> canidates = party->canidates();		PyObject *list = PyList_New(0);		for (P_PLAYER canidate = canidates.first(); canidate; canidate = canidates.next()) {			PyList_Append(list, canidate->getPyObject());		}		return list;	} else if (!strcmp(name, "lootingallowed")) {		QPtrList<cPlayer> lootlist = party->lootingAllowed();		PyObject *list = PyList_New(0);		for (P_PLAYER member = lootlist.first(); member; member = lootlist.next()) {			PyList_Append(list, member->getPyObject());		}		return list;	}	return Py_FindMethod(wpPartyMethods, (PyObject*)self, name);}