Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/collections/
D__init__.py1373 def removesuffix(self, suffix, /): member in UserString
1376 return self.__class__(self.data.removesuffix(suffix))
/external/python/cpython3/Doc/library/
Dstdtypes.rst1878 .. method:: str.removesuffix(suffix, /)
1884 >>> 'MiscTests'.removesuffix('Tests')
1886 >>> 'TmpDirMixin'.removesuffix('Tests')
1948 See :meth:`str.removesuffix` for a method that will remove a single suffix
1953 >>> 'Monty Python'.removesuffix(' Python')
2657 .. method:: bytes.removesuffix(suffix, /)
2658 bytearray.removesuffix(suffix, /)
2664 >>> b'MiscTests'.removesuffix(b'Tests')
2666 >>> b'TmpDirMixin'.removesuffix(b'Tests')
2985 :term:`bytes-like object`. See :meth:`~bytes.removesuffix` 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.rst168 :meth:`str.removesuffix(suffix)<str.removesuffix>` have been added