| 89 | } |
| 90 | |
| 91 | PyObject *JSObjectItemsProxyMethodDefinitions::JSObjectItemsProxy_repr(JSObjectItemsProxy *self) { |
| 92 | PyObject *seq; |
| 93 | PyObject *result = NULL; |
| 94 | |
| 95 | Py_ssize_t rc = Py_ReprEnter((PyObject *)self); |
| 96 | if (rc != 0) { |
| 97 | return rc > 0 ? PyUnicode_FromString("...") : NULL; |
| 98 | } |
| 99 | |
| 100 | seq = PySequence_List((PyObject *)self); |
| 101 | if (seq == NULL) { |
| 102 | goto Done; |
| 103 | } |
| 104 | |
| 105 | result = PyUnicode_FromFormat("%s(%R)", PyDictItems_Type.tp_name, seq); |
| 106 | Py_DECREF(seq); |
| 107 | |
| 108 | Done: |
| 109 | Py_ReprLeave((PyObject *)self); |
| 110 | return result; |
| 111 | } |
| 112 | |
| 113 | PyObject *JSObjectItemsProxyMethodDefinitions::JSObjectItemsProxy_mapping(PyObject *self, void *Py_UNUSED(ignored)) { |
| 114 | return PyDictProxy_New((PyObject *)((_PyDictViewObject *)self)->dv_dict); |
nothing calls this directly
no outgoing calls
no test coverage detected