MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / formatter_field_name_split

Function formatter_field_name_split

Objects/stringlib/string_format.h:1319–1361  ·  view source on GitHub ↗

unicode_formatter_field_name_split is used to implement string.Formatter.vformat. it takes an PEP 3101 "field name", and returns a tuple of (first, rest): "first", the part before the first '.' or '['; and "rest", an iterator for the rest of the field name. it's a wrapper around stringlib/string_format.h's field_name_split. The iterator it returns is a FieldNameIterator */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

field_name_splitFunction · 0.85
PyLong_FromSsize_tFunction · 0.85
SubString_new_objectFunction · 0.85
PyTuple_PackFunction · 0.50

Tested by

no test coverage detected