Searched refs:removeprefix (Results 1 – 6 of 6) sorted by relevance
24 union_val = val['m_value'][t.removeprefix('detail::value_t::')]
56 version = filename.removeprefix(prefix).partition('-')[0]
1412 def removeprefix(self, prefix, /): member in UserString1415 return self.__class__(self.data.removeprefix(prefix))
1873 See :meth:`str.removeprefix` for a method that will remove a single prefix1878 >>> 'Arthur: three!'.removeprefix('Arthur: ')1905 .. method:: str.removeprefix(prefix, /)1911 >>> 'TestHook'.removeprefix('Test')1913 >>> 'BaseTestCase'.removeprefix('Test')2676 .. method:: bytes.removeprefix(prefix, /)2677 bytearray.removeprefix(prefix, /)2683 >>> b'TestHook'.removeprefix(b'Test')2685 >>> b'BaseTestCase'.removeprefix(b'Test')2971 :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