| 1180 | |
| 1181 | template <typename IdxType, detail::enable_if_t<std::is_integral<IdxType>::value, int> = 0> |
| 1182 | static void set(handle obj, const IdxType &index, handle val) { |
| 1183 | // PySequence_SetItem does not steal a reference to 'val' |
| 1184 | if (PySequence_SetItem(obj.ptr(), ssize_t_cast(index), val.ptr()) != 0) { |
| 1185 | throw error_already_set(); |
| 1186 | } |
| 1187 | } |
| 1188 | }; |
| 1189 | |
| 1190 | struct list_item { |
nothing calls this directly
no test coverage detected