diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-09-27 09:28:06 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-09-27 09:28:06 +0400 |
commit | 928e2784c6596f64ca5201eed269959865d15970 (patch) | |
tree | b0dea3efd0eb4697e4a94f130acc154ba8fbcd36 /source/blender/python/generic/IDProp.c | |
parent | d98bcb8a77c0a06dc35669dd8898f1f9f2ad85c6 (diff) |
py api
- use Py_ssize_t when dealing with python sequence sizes
- dont call PySequence_Size(py_b) in a loop (its slow).
- use faster sequence/float parsing in aud.Factory.filter
Diffstat (limited to 'source/blender/python/generic/IDProp.c')
-rw-r--r-- | source/blender/python/generic/IDProp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/generic/IDProp.c b/source/blender/python/generic/IDProp.c index 2543d34f58c..e6883eb30af 100644 --- a/source/blender/python/generic/IDProp.c +++ b/source/blender/python/generic/IDProp.c @@ -269,7 +269,7 @@ static int idp_sequence_type(PyObject *seq) PyObject *item; int type= IDP_INT; - int i, len = PySequence_Size(seq); + Py_ssize_t i, len = PySequence_Size(seq); for (i=0; i < len; i++) { item = PySequence_GetItem(seq, i); if (PyFloat_Check(item)) { |