MCPcopy Index your code
hub / github.com/python/cpython / format

Function format

Lib/calendar.py:819–821  ·  view source on GitHub ↗

Prints multi-column formatting for year calendars

(cols, colwidth=_colwidth, spacing=_spacing)

Source from the content-addressed store, hash-verified

817
818
819def format(cols, colwidth=_colwidth, spacing=_spacing):
820 """Prints multi-column formatting for year calendars"""
821 print(formatstring(cols, colwidth, spacing))
822
823
824def formatstring(cols, colwidth=_colwidth, spacing=_spacing):

Callers 15

multicolumnMethod · 0.85
__format__Method · 0.85
_get_module_detailsFunction · 0.85
test_formatMethod · 0.85
test_nonascii_historyMethod · 0.85
test_nonasciiMethod · 0.85
test_format_miscMethod · 0.85
test_non_asciiMethod · 0.85
test_localeMethod · 0.85
test_precisionMethod · 0.85

Calls 1

formatstringFunction · 0.85

Tested by 15

test_formatMethod · 0.68
test_nonascii_historyMethod · 0.68
test_nonasciiMethod · 0.68
test_format_miscMethod · 0.68
test_non_asciiMethod · 0.68
test_localeMethod · 0.68
test_precisionMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…