Home | History | Annotate | Download | only in Python

Lines Matching defs:NULL

205             PyCapsule_SetDestructor(PyList_GET_ITEM(freelist, i), NULL);

217 const char *fname = NULL;
218 const char *message = NULL;
226 PyObject *freelist = NULL;
229 assert(compat || (args != (PyObject*)NULL));
284 if (args == NULL)
288 fname==NULL ? "function" : fname,
289 fname==NULL ? "" : "()");
294 if (args == NULL) {
297 fname==NULL ? "function" : fname,
298 fname==NULL ? "" : "()");
304 if (msg == NULL)
325 if (message == NULL) {
329 fname==NULL ? "function" : fname,
330 fname==NULL ? "" : "()",
377 else if (message == NULL) {
378 if (fname != NULL) {
411 and NULL is returned.
475 if (item == NULL) {
486 if (msg != NULL) {
493 return NULL;
510 if (msg == NULL)
516 if (msg != NULL)
519 if (msg == NULL)
527 _PyUnicode_AsDefaultEncodedString(arg, NULL)
534 assert(expected != NULL);
535 assert(arg != NULL);
571 /* Convert a non-tuple argument. Return NULL if conversion went OK,
585 #define FETCH_SIZE int *q=NULL;Py_ssize_t *q2=NULL;\
844 if (uarg == NULL)
874 if (uarg == NULL)
897 if (uarg == NULL)
906 return converterr("string without null bytes",
912 case 'z': {/* string, may be NULL (None) */
917 PyBuffer_FillInfo(p, NULL, NULL, 0, 1, 0);
926 if (uarg == NULL)
960 if (uarg == NULL)
985 if (uarg == NULL)
1004 else if (*p != NULL &&
1007 "string without null bytes or None",
1023 if (encoding == NULL)
1041 if (buffer == NULL)
1042 return converterr("(buffer is NULL)",
1056 if (u == NULL)
1064 NULL);
1066 if (s == NULL)
1085 - if *buffer is NULL, a new buffer of the
1092 - if *buffer is not NULL, the data is
1107 if (q == NULL && q2 == NULL) {
1110 "(buffer_len is NULL)",
1113 if (*buffer == NULL) {
1115 if (*buffer == NULL) {
1157 "encoded string without NULL bytes",
1161 if (*buffer == NULL) {
1294 if (pb == NULL ||
1295 pb->bf_getwritebuffer == NULL ||
1296 pb->bf_getsegcount == NULL)
1298 if ((*pb->bf_getsegcount)(arg, NULL) != 1)
1329 pb == NULL || pb->bf_getcharbuffer == NULL ||
1330 pb->bf_getsegcount == NULL)
1335 if (pb->bf_getsegcount(arg, NULL) != 1)
1361 return NULL;
1369 if (pb == NULL ||
1370 pb->bf_getreadbuffer == NULL ||
1371 pb->bf_getsegcount == NULL ||
1372 pb->bf_releasebuffer != NULL) {
1376 if ((*pb->bf_getsegcount)(arg, NULL) != 1) {
1392 if (pb == NULL) {
1430 if ((args == NULL || !PyTuple_Check(args)) ||
1431 (keywords != NULL && !PyDict_Check(keywords)) ||
1432 format == NULL ||
1433 kwlist == NULL)
1454 if ((args == NULL || !PyTuple_Check(args)) ||
1455 (keywords != NULL && !PyDict_Check(keywords)) ||
1456 format == NULL ||
1457 kwlist == NULL)
1480 if ((args == NULL || !PyTuple_Check(args)) ||
1481 (keywords != NULL && !PyDict_Check(keywords)) ||
1482 format == NULL ||
1483 kwlist == NULL)
1512 if ((args == NULL || !PyTuple_Check(args)) ||
1513 (keywords != NULL && !PyDict_Check(keywords)) ||
1514 format == NULL ||
1515 kwlist == NULL)
1547 PyObject *freelist = NULL, *current_arg;
1549 assert(args != NULL && PyTuple_Check(args));
1550 assert(keywords == NULL || PyDict_Check(keywords));
1551 assert(format != NULL);
1552 NULL);
1553 assert(p_va != NULL);
1559 custom_msg = NULL;
1572 nkeywords = (keywords == NULL) ? 0 : PyDict_Size(keywords);
1576 (fname == NULL) ? "function" : fname,
1577 (fname == NULL) ? "" : "()",
1597 current_arg = NULL;
1820 return NULL;
1847 if (name != NULL)
1862 if (name != NULL)
1893 if (kw == NULL)