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);
590 /* Convert a non-tuple argument. Return NULL if conversion went OK,
604 #define FETCH_SIZE int *q=NULL;Py_ssize_t *q2=NULL;\
863 if (uarg == NULL)
893 if (uarg == NULL)
916 if (uarg == NULL)
925 return converterr("string without null bytes",
931 case 'z': {/* string, may be NULL (None) */
936 PyBuffer_FillInfo(p, NULL, NULL, 0, 1, 0);
945 if (uarg == NULL)
979 if (uarg == NULL)
1004 if (uarg == NULL)
1023 else if (*p != NULL &&
1026 "string without null bytes or None",
1042 if (encoding == NULL)
1060 if (buffer == NULL)
1061 return converterr("(buffer is NULL)",
1075 if (u == NULL)
1083 NULL);
1085 if (s == NULL)
1104 - if *buffer is NULL, a new buffer of the
1111 - if *buffer is not NULL, the data is
1126 if (q == NULL && q2 == NULL) {
1129 "(buffer_len is NULL)",
1132 if (*buffer == NULL) {
1134 if (*buffer == NULL) {
1178 "encoded string without null bytes",
1182 if (*buffer == NULL) {
1220 "unicode without null characters",
1320 if (pb == NULL ||
1321 pb->bf_getwritebuffer == NULL ||
1322 pb->bf_getsegcount == NULL)
1324 if ((*pb->bf_getsegcount)(arg, NULL) != 1)
1355 pb == NULL || pb->bf_getcharbuffer == NULL ||
1356 pb->bf_getsegcount == NULL)
1361 if (pb->bf_getsegcount(arg, NULL) != 1)
1387 return NULL;
1395 if (pb == NULL ||
1396 pb->bf_getreadbuffer == NULL ||
1397 pb->bf_getsegcount == NULL ||
1398 pb->bf_releasebuffer != NULL) {
1402 if ((*pb->bf_getsegcount)(arg, NULL) != 1) {
1418 if (pb == NULL) {
1456 if ((args == NULL || !PyTuple_Check(args)) ||
1457 (keywords != NULL && !PyDict_Check(keywords)) ||
1458 format == NULL ||
1459 kwlist == NULL)
1480 if ((args == NULL || !PyTuple_Check(args)) ||
1481 (keywords != NULL && !PyDict_Check(keywords)) ||
1482 format == NULL ||
1483 kwlist == NULL)
1506 if ((args == NULL || !PyTuple_Check(args)) ||
1507 (keywords != NULL && !PyDict_Check(keywords)) ||
1508 format == NULL ||
1509 kwlist == NULL)
1538 if ((args == NULL || !PyTuple_Check(args)) ||
1539 (keywords != NULL && !PyDict_Check(keywords)) ||
1540 format == NULL ||
1541 kwlist == NULL)
1573 PyObject *freelist = NULL, *current_arg;
1575 assert(args != NULL && PyTuple_Check(args));
1576 assert(keywords == NULL || PyDict_Check(keywords));
1577 assert(format != NULL);
1578 assert(kwlist != NULL);
1579 assert(p_va != NULL);
1585 custom_msg = NULL;
1598 nkeywords = (keywords == NULL) ? 0 : PyDict_Size(keywords);
1602 (fname == NULL) ? "function" : fname,
1603 NULL) ? "" : "()",
1623 current_arg = NULL;
1846 return NULL;
1873 if (name != NULL)
1888 if (name != NULL)
1919 if (kw == NULL)