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

Method removeprefix

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

Source from the content-addressed store, hash-verified

1464 return self.data.count(sub, start, end)
1465
1466 def removeprefix(self, prefix, /):
1467 if isinstance(prefix, UserString):
1468 prefix = prefix.data
1469 return self.__class__(self.data.removeprefix(prefix))
1470
1471 def removesuffix(self, suffix, /):
1472 if isinstance(suffix, UserString):

Callers 14

fromisoformatMethod · 0.45
replFunction · 0.45
_format_usageMethod · 0.45
_decode_uuFunction · 0.45
mock.pyFile · 0.45
__missing__Method · 0.45
check_roundtripMethod · 0.45
checkMethod · 0.45
test_mode_win32Method · 0.45
collect_windowsFunction · 0.45
list_test_dirsMethod · 0.45
test_fail_help_cliMethod · 0.45

Calls 2

isinstanceFunction · 0.85
__class__Method · 0.45

Tested by 6

__missing__Method · 0.36
check_roundtripMethod · 0.36
checkMethod · 0.36
test_mode_win32Method · 0.36
list_test_dirsMethod · 0.36
test_fail_help_cliMethod · 0.36