| 1213 | |
| 1214 | template <typename IdxType, detail::enable_if_t<std::is_integral<IdxType>::value, int> = 0> |
| 1215 | static object get(handle obj, const IdxType &index) { |
| 1216 | PyObject *result = PyTuple_GetItem(obj.ptr(), ssize_t_cast(index)); |
| 1217 | if (!result) { |
| 1218 | throw error_already_set(); |
| 1219 | } |
| 1220 | return reinterpret_borrow<object>(result); |
| 1221 | } |
| 1222 | |
| 1223 | template <typename IdxType, detail::enable_if_t<std::is_integral<IdxType>::value, int> = 0> |
| 1224 | static void set(handle obj, const IdxType &index, handle val) { |
nothing calls this directly
no test coverage detected