Home
last modified time | relevance | path

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

/third_party/python/Tools/scripts/
Dgenerate_stdlib_module_names.py64 name = filename.removesuffix(".py")
/third_party/python/Lib/collections/
D__init__.py1417 def removesuffix(self, suffix, /): member in UserString
1420 return self.__class__(self.data.removesuffix(suffix))
/third_party/python/Doc/library/
Dstdtypes.rst1919 .. method:: str.removesuffix(suffix, /)
1925 >>> 'MiscTests'.removesuffix('Tests')
1927 >>> 'TmpDirMixin'.removesuffix('Tests')
1989 See :meth:`str.removesuffix` for a method that will remove a single suffix
1994 >>> 'Monty Python'.removesuffix(' Python')
2698 .. method:: bytes.removesuffix(suffix, /)
2699 bytearray.removesuffix(suffix, /)
2705 >>> b'MiscTests'.removesuffix(b'Tests')
2707 >>> b'TmpDirMixin'.removesuffix(b'Tests')
3027 :term:`bytes-like object`. See :meth:`~bytes.removesuffix` for a method
[all …]
/third_party/python/Misc/NEWS.d/
D3.9.0a6.rst250 Added str.removeprefix and str.removesuffix methods and corresponding bytes,
/third_party/python/Doc/whatsnew/
D3.9.rst168 :meth:`str.removesuffix(suffix)<str.removesuffix>` have been added