Lines Matching refs:format_spec
770 PyObject_Format(PyObject *obj, PyObject *format_spec)
776 if (format_spec != NULL && !PyUnicode_Check(format_spec)) {
779 Py_TYPE(format_spec)->tp_name);
784 if (format_spec == NULL || PyUnicode_GET_LENGTH(format_spec) == 0) {
794 /* If no format_spec is provided, use an empty string */
795 if (format_spec == NULL) {
797 format_spec = empty;
813 result = PyObject_CallOneArg(meth, format_spec);