comparison src/if_py_both.h @ 4260:d8acfc49d94e v7.3.881

updated for version 7.3.881 Problem: Python list does not work correctly. Solution: Fix it and add a test. (Yukihiro Nakadaira)
author Bram Moolenaar <bram@vim.org>
date Fri, 05 Apr 2013 19:32:36 +0200
parents 36fd800b8c6c
children 9f3da1dea7c0
comparison
equal deleted inserted replaced
4259:d26e3be050b2 4260:d8acfc49d94e
1137 if (list == NULL) 1137 if (list == NULL)
1138 return NULL; 1138 return NULL;
1139 1139
1140 for (i = 0; i < n; ++i) 1140 for (i = 0; i < n; ++i)
1141 { 1141 {
1142 PyObject *item = ListItem(self, i); 1142 PyObject *item = ListItem(self, first + i);
1143 if (item == NULL) 1143 if (item == NULL)
1144 { 1144 {
1145 Py_DECREF(list); 1145 Py_DECREF(list);
1146 return NULL; 1146 return NULL;
1147 } 1147 }