| 2570 | } |
| 2571 | |
| 2572 | inline str repr(handle h) { |
| 2573 | PyObject *str_value = PyObject_Repr(h.ptr()); |
| 2574 | if (!str_value) { |
| 2575 | throw error_already_set(); |
| 2576 | } |
| 2577 | return reinterpret_steal<str>(str_value); |
| 2578 | } |
| 2579 | |
| 2580 | inline iterator iter(handle obj) { |
| 2581 | PyObject *result = PyObject_GetIter(obj.ptr()); |