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

Method removeprefix

Lib/test/test_bytes.py:2643–2645  ·  view source on GitHub ↗
(b, a)

Source from the content-addressed store, hash-verified

2641 assert not a.partition(b'\xdd')[2]
2642
2643 def removeprefix(b, a):
2644 b.wait()
2645 assert not a.removeprefix(b'0')
2646
2647 def removesuffix(b, a):
2648 b.wait()

Callers 11

__missing__Method · 0.45
check_roundtripMethod · 0.45
check_script_errorMethod · 0.45
check_script_errorMethod · 0.45
checkMethod · 0.45
test_mode_win32Method · 0.45
EnumKeyMethod · 0.45
test_cli_convertersMethod · 0.45
collect_windowsFunction · 0.45
list_test_dirsMethod · 0.45
test_fail_help_cliMethod · 0.45

Calls 1

waitMethod · 0.45

Tested by

no test coverage detected