History

python/lib/gen_code.py: fix number of output

Paul Brossier committed 10 years ago

Commit 31c60101 parent a9a1e791 file · +1 −1Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/lib/gen_code.py+1−1
@@ -426,7 +426,7 @@ Py_{shortname}_do (Py_{shortname} * self, PyObject * args) · 425 unmodified lines
426426 )
427427 if len(self.do_outputs) > 1:
428428 out += """
429− outputs = PyTuple_New(2);""".format(len(self.do_outputs))
429+ outputs = PyTuple_New({:d});""".format(len(self.do_outputs))
430430 for i, p in enumerate(self.do_outputs):
431431 out += """
432432 PyTuple_SetItem( outputs, {i}, self->{p[name]});""".format(i = i, p = p)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t