Searched refs:structmodule (Results 1 – 5 of 5) sorted by relevance
11 static PyObject *structmodule = NULL; variable581 unpack_from = PyObject_GetAttrString(structmodule, "unpack_from"); in unpack_single()2846 structmodule = PyImport_ImportModule("struct"); in PyInit__testbuffer()2847 if (structmodule == NULL) in PyInit__testbuffer()2850 Struct = PyObject_GetAttrString(structmodule, "Struct"); in PyInit__testbuffer()2851 calcsize = PyObject_GetAttrString(structmodule, "calcsize"); in PyInit__testbuffer()
1961 PyObject *structmodule; /* XXX cache these two */ in struct_get_unpacker() local1967 structmodule = PyImport_ImportModule("struct"); in struct_get_unpacker()1968 if (structmodule == NULL) in struct_get_unpacker()1971 Struct = PyObject_GetAttrString(structmodule, "Struct"); in struct_get_unpacker()1972 Py_DECREF(structmodule); in struct_get_unpacker()
527 PyObject *structmodule = NULL; in PyBuffer_SizeFromFormat() local533 structmodule = PyImport_ImportModule("struct"); in PyBuffer_SizeFromFormat()534 if (structmodule == NULL) { in PyBuffer_SizeFromFormat()538 calcsize = PyObject_GetAttrString(structmodule, "calcsize"); in PyBuffer_SizeFromFormat()559 Py_DECREF(structmodule); in PyBuffer_SizeFromFormat()
111 Modules/_testbuffer.c - structmodule -
29686 - Added doc strings to string.py, stropmodule.c, structmodule.c,