Home | History | Annotate | Download | only in Objects

Lines Matching defs:format_spec

904 "Convert to a string according to format_spec.");

909 PyObject *format_spec;
911 if (!PyArg_ParseTuple(args, "O:__format__", &format_spec))
913 if (PyBytes_Check(format_spec))
915 PyBytes_AS_STRING(format_spec),
916 PyBytes_GET_SIZE(format_spec));
917 if (PyUnicode_Check(format_spec)) {
918 /* Convert format_spec to a str */
920 PyObject *str_spec = PyObject_Str(format_spec);