Lines Matching refs:format_spec
392 format_spec. It handles getindex and getattr lookups and consumes
496 render_field calls fieldobj.__format__(format_spec) method, and
500 render_field(PyObject *fieldobj, SubString *format_spec, _PyUnicodeWriter *writer)
522 err = formatter(writer, fieldobj, format_spec->str,
523 format_spec->start, format_spec->end);
528 __format__ takes a string/unicode object for format_spec. */
529 if (format_spec->str)
530 format_spec_object = PyUnicode_Substring(format_spec->str,
531 format_spec->start,
532 format_spec->end);
554 parse_field(SubString *str, SubString *field_name, SubString *format_spec,
565 SubString_init(format_spec, NULL, 0, 0);
619 format_spec->str = str->str;
620 format_spec->start = str->start;
631 format_spec->end = str->start - 1;
677 SubString *format_spec, Py_UCS4 *conversion,
689 SubString_init(format_spec, NULL, 0, 0);
756 if (!parse_field(&self->str, field_name, format_spec,
794 {field_name!conversion:format_spec}
799 format_spec string.
806 output_markup(SubString *field_name, SubString *format_spec,
833 /* if needed, recursively compute the format_spec */
835 tmp = build_string(format_spec, args, kwargs, recursion_depth-1,
847 actual_format_spec = format_spec;
877 SubString format_spec;
882 &field_name, &format_spec,
896 if (!output_markup(&field_name, &format_spec,
992 (literal, field_name, format_spec, conversion)
996 format_spec is the string after the ':'. mibht be None
1004 SubString format_spec;
1009 &field_name, &format_spec, &conversion,
1034 format_spec (even if zero length), else return None */
1037 SubString_new_object)(&format_spec);