return PyUnicode_FromUnicode((unsigned short*)value.ucs2(), value.length());
return PyUnicode_FromUnicode((Py_UNICODE*)value.ucs2(), value.length());
static PyObject *wpGuild_getAttr(wpGuild *self, char *name) {	if (!self->guild) {		PyErr_SetString(PyExc_RuntimeError, "Calling member functions after deletion.");		return 0;	}	if (!strcmp(name, "members")) {		QPtrList<cPlayer> &members = self->guild->members();		PyObject *list = PyList_New(members.count());		unsigned int i = 0;		for (P_PLAYER player = members.first(); player; player = members.next()) {			PyList_SetItem(list, i++, player->getPyObject());		}		return list;	} else if (!strcmp(name, "canidates")) {		QPtrList<cPlayer> &canidates = self->guild->canidates();		PyObject *list = PyList_New(canidates.count());		unsigned int i = 0;		for (P_PLAYER player = canidates.first(); player; player = canidates.next()) {			PyList_SetItem(list, i++, player->getPyObject());		}		return list;	} else if (!strcmp(name, "leader")) {		if (!self->guild->leader()) {			Py_INCREF(Py_None);			return Py_None;		} else {			return self->guild->leader()->getPyObject();		}	} else if (!strcmp(name, "name")) {		const QString &value = self->guild->name();		if (value == QString::null) {			return PyUnicode_FromWideChar(L"", 0);		} else {			return PyUnicode_FromUnicode((unsigned short*)value.ucs2(), value.length());		}	} else if (!strcmp(name, "abbreviation")) {		const QString &value = self->guild->abbreviation();		if (value == QString::null) {			return PyUnicode_FromWideChar(L"", 0);		} else {			return PyUnicode_FromUnicode((unsigned short*)value.ucs2(), value.length());		}	} else if (!strcmp(name, "charta")) {		const QString &value = self->guild->charta();		if (value == QString::null) {			return PyUnicode_FromWideChar(L"", 0);		} else {			return PyUnicode_FromUnicode((unsigned short*)value.ucs2(), value.length());		}	} else if (!strcmp(name, "website")) {		const QString &value = self->guild->website();		if (value == QString::null) {			return PyUnicode_FromWideChar(L"", 0);		} else {			return PyUnicode_FromUnicode((unsigned short*)value.ucs2(), value.length());		}	} else if (!strcmp(name, "alignment")) {		return PyInt_FromLong(self->guild->alignment());	} else if (!strcmp(name, "serial")) {		return PyInt_FromLong(self->guild->serial());	} else if (!strcmp(name, "founded")) {		return PyInt_FromLong(self->guild->founded().toTime_t());	} else if (!strcmp(name, "guildstone")) {		if (self->guild->guildstone()) {			return self->guild->guildstone()->getPyObject();		} else {			Py_INCREF(Py_None);			return Py_None;		}	}	return Py_FindMethod(wpGuildMethods, (PyObject*)self, name);}