Home | History | Annotate | Download | only in Objects

Lines Matching defs:format_spec

3603     PyObject *format_spec;

3607 /* If 2.x, convert format_spec to the same type as value */
3609 if (!PyArg_ParseTuple(args, "O:__format__", &format_spec))
3611 if (!(PyString_Check(format_spec) || PyUnicode_Check(format_spec))) {
3613 "or unicode, not %s", Py_TYPE(format_spec)->tp_name);
3616 tmp = PyObject_Str(format_spec);
3619 format_spec = tmp;
3622 PyString_AS_STRING(format_spec),
3623 PyString_GET_SIZE(format_spec));
3630 "S.__format__(format_spec) -> string\n\
3632 Return a formatted version of S as described by format_spec.");