Searched refs:removeprefix (Results 1 – 4 of 4) sorted by relevance
1368 def removeprefix(self, prefix, /): member in UserString1371 return self.__class__(self.data.removeprefix(prefix))
1832 See :meth:`str.removeprefix` for a method that will remove a single prefix1837 >>> '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 …]
250 Added str.removeprefix and str.removesuffix methods and corresponding bytes,
167 :meth:`str.removeprefix(prefix)<str.removeprefix>` and