Lines Matching refs:format
2845 /* bogus format "%.123" => go backward, f points to "3" */
3070 of the format string to the output string. (we cannot just
3085 PyUnicode_FromFormatV(const char *format, va_list vargs)
3092 writer.min_length = strlen(format) + 100;
3098 for (f = format; *f; ) {
3113 "PyUnicode_FromFormatV() expects an ASCII-encoded format "
3142 PyUnicode_FromFormat(const char *format, ...)
3148 va_start(vargs, format);
3152 ret = PyUnicode_FromFormatV(format, vargs);
14074 "S.format(*args, **kwargs) -> str\n\
14205 {"format", _PyCFunction_CAST(do_string_format), METH_VARARGS | METH_KEYWORDS, format__doc__},
14357 "not enough arguments for format string");
14404 /* formatlong() emulates the format codes d, u, o, x and X, and
14415 * flags bitmask of format flags; only F_ALT is looked at
14450 /* format code is used (see issue18780) */
14635 "%%%c format: an integer is required, "
14641 "%%%c format: a real number is required, "
14709 "format requires a mapping");
14727 "incomplete format key");
14845 /* Ignore "h", "l" and "L" format prefix (ex: "%hi" or "%ls") */
14856 "incomplete format");
14970 "unsupported format character '%c' (0x%x) "
15081 For example, write "0x" for the "%#x" format. */
15138 /* Helper of PyUnicode_Format(): format one arg.
15185 PyUnicode_Format(PyObject *format, PyObject *args)
15189 if (format == NULL || args == NULL) {
15194 if (ensure_unicode(format) < 0)
15197 ctx.fmtstr = format;
16174 METH_O, PyDoc_STR("parse the argument as a format string")},