Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -426,7 +426,7 @@ Py_{shortname}_do (Py_{shortname} * self, PyObject * args) · 425 unmodified lines | ||
| 426 | 426 | ) |
| 427 | 427 | if len(self.do_outputs) > 1: |
| 428 | 428 | out += """ |
| 429 | − outputs = PyTuple_New(2);""".format(len(self.do_outputs)) | |
| 429 | + outputs = PyTuple_New({:d});""".format(len(self.do_outputs)) | |
| 430 | 430 | for i, p in enumerate(self.do_outputs): |
| 431 | 431 | out += """ |
| 432 | 432 | PyTuple_SetItem( outputs, {i}, self->{p[name]});""".format(i = i, p = p) |