Searched refs:removesuffix (Results 1 – 4 of 4) sorted by relevance
1373 def removesuffix(self, suffix, /): member in UserString1376 return self.__class__(self.data.removesuffix(suffix))
1878 .. 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 suffix1953 >>> '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 …]
250 Added str.removeprefix and str.removesuffix methods and corresponding bytes,
168 :meth:`str.removesuffix(suffix)<str.removesuffix>` have been added