Skip to content

Commit 346b84f

Browse files
committed
Simplify arg copying
1 parent a6fe69e commit 346b84f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/pybind11/pybind11.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,8 +580,7 @@ class cpp_function : public function {
580580
size_t args_size = n_args_in - args_copied;
581581
extra_args = tuple(args_size);
582582
for (size_t i = 0; i < args_size; ++i) {
583-
handle item = PyTuple_GET_ITEM(args_in, args_copied + i);
584-
extra_args[i] = reinterpret_borrow<object>(item);
583+
extra_args[i] = PyTuple_GET_ITEM(args_in, args_copied + i);
585584
}
586585
}
587586
call.args.push_back(extra_args);

0 commit comments

Comments
 (0)