Get the arg tuple to pass in the context argument to __array_wrap__ and * __array_prepare__. * * Output arguments are only passed if at least one is non-None. */
| 99 | * Output arguments are only passed if at least one is non-None. |
| 100 | */ |
| 101 | static PyObject * |
| 102 | _get_wrap_prepare_args(ufunc_full_args full_args) { |
| 103 | if (full_args.out == NULL) { |
| 104 | Py_INCREF(full_args.in); |
| 105 | return full_args.in; |
| 106 | } |
| 107 | else { |
| 108 | return PySequence_Concat(full_args.in, full_args.out); |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | /* ---------------------------------------------------------------- */ |
| 113 |
no outgoing calls
no test coverage detected