Lines Matching defs:arg
166 ascii_buffer_converter(PyObject *arg, Py_buffer *buf)
168 if (arg == NULL) {
172 if (PyUnicode_Check(arg)) {
173 if (PyUnicode_READY(arg) < 0)
175 if (!PyUnicode_IS_ASCII(arg)) {
180 assert(PyUnicode_KIND(arg) == PyUnicode_1BYTE_KIND);
181 buf->buf = (void *) PyUnicode_1BYTE_DATA(arg);
182 buf->len = PyUnicode_GET_LENGTH(arg);
186 if (PyObject_GetBuffer(arg, buf, PyBUF_SIMPLE) != 0) {
189 "not '%.100s'", Py_TYPE(arg)->tp_name);
195 "not '%.100s'", Py_TYPE(arg)->tp_name);
1304 binascii_traverse(PyObject *module, visitproc visit, void *arg)