Home
last modified time | relevance | path

Searched refs:removeprefix (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython3/Lib/collections/
D__init__.py1368 def removeprefix(self, prefix, /): member in UserString
1371 return self.__class__(self.data.removeprefix(prefix))
/external/python/cpython3/Doc/library/
Dstdtypes.rst1832 See :meth:`str.removeprefix` for a method that will remove a single prefix
1837 >>> 'Arthur: three!'.removeprefix('Arthur: ')
1864 .. method:: str.removeprefix(prefix, /)
1870 >>> 'TestHook'.removeprefix('Test')
1872 >>> 'BaseTestCase'.removeprefix('Test')
2635 .. method:: bytes.removeprefix(prefix, /)
2636 bytearray.removeprefix(prefix, /)
2642 >>> b'TestHook'.removeprefix(b'Test')
2644 >>> b'BaseTestCase'.removeprefix(b'Test')
2929 :term:`bytes-like object`. See :meth:`~bytes.removeprefix` for a method
[all …]
/external/python/cpython3/Misc/NEWS.d/
D3.9.0a6.rst250 Added str.removeprefix and str.removesuffix methods and corresponding bytes,
/external/python/cpython3/Doc/whatsnew/
D3.9.rst167 :meth:`str.removeprefix(prefix)<str.removeprefix>` and