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

Method center

Lib/collections/__init__.py:1458–1459  ·  view source on GitHub ↗
(self, width, *args)

Source from the content-addressed store, hash-verified

1456 return self.__class__(self.data.casefold())
1457
1458 def center(self, width, *args):
1459 return self.__class__(self.data.center(width, *args))
1460
1461 def count(self, sub, start=0, end=_sys.maxsize):
1462 if isinstance(sub, UserString):

Callers 12

formatdayMethod · 0.45
formatweekdayMethod · 0.45
formatmonthnameMethod · 0.45
formatyearMethod · 0.45
formatyearMethod · 0.45
formatstringFunction · 0.45
test_centerMethod · 0.45
test_issue18183Method · 0.45
test_centerMethod · 0.45
test_centerMethod · 0.45

Calls 1

__class__Method · 0.45

Tested by 5

test_centerMethod · 0.36
test_issue18183Method · 0.36
test_centerMethod · 0.36
test_centerMethod · 0.36