diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-06-12 16:56:12 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-06-12 16:56:12 +0400 |
commit | 1c2ce9535caa7ef0ed70aea5bd25c0f281322cf6 (patch) | |
tree | 8c8203d3b4d9ce40fc52aec23099c99f8d82c759 /source/gameengine/Ketsji/KX_GameObject.h | |
parent | 96c5f36eff4ee85aad90c507070447a6ad5bdda9 (diff) |
use contains for ListValue and KX_GameObject types (has_key is deprecated by python)
eg.
if 'prop' in gameOb: ...
if 'GameOb' in sce.objects: ...
Diffstat (limited to 'source/gameengine/Ketsji/KX_GameObject.h')
-rw-r--r-- | source/gameengine/Ketsji/KX_GameObject.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/gameengine/Ketsji/KX_GameObject.h b/source/gameengine/Ketsji/KX_GameObject.h index dbdea97031d..ff5c8a01e6e 100644 --- a/source/gameengine/Ketsji/KX_GameObject.h +++ b/source/gameengine/Ketsji/KX_GameObject.h @@ -917,10 +917,8 @@ public: static PyObject* pyattr_get_actuators(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef); /* getitem/setitem */ - static Py_ssize_t Map_Len(PyObject* self); static PyMappingMethods Mapping; - static PyObject* Map_GetItem(PyObject *self_v, PyObject *item); - static int Map_SetItem(PyObject *self_v, PyObject *key, PyObject *val); + static PySequenceMethods Sequence; private : |