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

Method removeprefix

Lib/collections/__init__.py:1506–1509  ·  view source on GitHub ↗
(self, prefix, /)

Source from the content-addressed store, hash-verified

1504 return self.data.count(sub, start, end)
1505
1506 def removeprefix(self, prefix, /):
1507 if isinstance(prefix, UserString):
1508 prefix = prefix.data
1509 return self.__class__(self.data.removeprefix(prefix))
1510
1511 def removesuffix(self, suffix, /):
1512 if isinstance(suffix, UserString):

Callers 15

mainFunction · 0.45
runMethod · 0.45
parse_platformsMethod · 0.45
add_annotationsFunction · 0.45
fromisoformatMethod · 0.45
replFunction · 0.45
_format_usageMethod · 0.45
defaultMethod · 0.45
read_commandMethod · 0.45
_decode_uuFunction · 0.45
mock.pyFile · 0.45

Calls 1

__class__Method · 0.45

Tested by

no test coverage detected