Home
last modified time | relevance | path

Searched refs:fieldobj (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Objects/stringlib/
Dstring_format.h560 render_field(PyObject *fieldobj, SubString *format_spec, OutputString *output) in render_field() argument
574 if (PyUnicode_CheckExact(fieldobj)) in render_field()
582 if (PyString_CheckExact(fieldobj)) in render_field()
584 else if (PyInt_CheckExact(fieldobj)) in render_field()
586 else if (PyLong_CheckExact(fieldobj)) in render_field()
588 else if (PyFloat_CheckExact(fieldobj)) in render_field()
595 result = formatter(fieldobj, format_spec_start, format_spec_len); in render_field()
605 result = PyObject_Format(fieldobj, format_spec_object); in render_field()
888 PyObject *fieldobj = NULL; in output_markup() local
894 fieldobj = get_field_object(field_name, args, kwargs, auto_number); in output_markup()
[all …]
/external/python/cpython3/Objects/stringlib/
Dunicode_format.h498 render_field(PyObject *fieldobj, SubString *format_spec, _PyUnicodeWriter *writer) in render_field() argument
508 if (PyUnicode_CheckExact(fieldobj)) in render_field()
510 else if (PyLong_CheckExact(fieldobj)) in render_field()
512 else if (PyFloat_CheckExact(fieldobj)) in render_field()
514 else if (PyComplex_CheckExact(fieldobj)) in render_field()
520 err = formatter(writer, fieldobj, format_spec->str, in render_field()
536 result = PyObject_Format(fieldobj, format_spec_object); in render_field()
810 PyObject *fieldobj = NULL; in output_markup() local
816 fieldobj = get_field_object(field_name, args, kwargs, auto_number); in output_markup()
817 if (fieldobj == NULL) in output_markup()
[all …]