MCPcopy Index your code
hub / github.com/RustPython/RustPython / format

Function format

Lib/calendar.py:786–788  ·  view source on GitHub ↗

Prints multi-column formatting for year calendars

(cols, colwidth=_colwidth, spacing=_spacing)

Source from the content-addressed store, hash-verified

784
785
786def format(cols, colwidth=_colwidth, spacing=_spacing):
787 """Prints multi-column formatting for year calendars"""
788 print(formatstring(cols, colwidth, spacing))
789
790
791def formatstring(cols, colwidth=_colwidth, spacing=_spacing):

Callers 15

multicolumnMethod · 0.70
__format__Method · 0.70
_get_module_detailsFunction · 0.70
test_formatMethod · 0.50
test_format_miscMethod · 0.50
test_non_asciiMethod · 0.50
test_localeMethod · 0.50
test_precisionMethod · 0.50

Calls 2

formatstringFunction · 0.85
printFunction · 0.50