Skip to content

Commit a8b723d

Browse files
authored
[mypyc] Document that strip() etc. are optimized (#18793)
(Also unrelated minor formatting tweak to frozenset docs.)
1 parent 0f5ddd5 commit a8b723d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

mypyc/doc/frozenset_operations.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _frozenset-ops:
22

33
Native frozenset operations
4-
======================
4+
===========================
55

66
These ``frozenset`` operations have fast, optimized implementations. Other
77
frozenset operations use generic implementations that are often slower.

mypyc/doc/str_operations.rst

+6
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ Methods
3737
* ``s1.find(s2: str, start: int)``
3838
* ``s1.find(s2: str, start: int, end: int)``
3939
* ``s.join(x: Iterable)``
40+
* ``s.lstrip()``
41+
* ``s.lstrip(chars: str)``
4042
* ``s.partition(sep: str)``
4143
* ``s.removeprefix(prefix: str)``
4244
* ``s.removesuffix(suffix: str)``
@@ -49,13 +51,17 @@ Methods
4951
* ``s.rsplit()``
5052
* ``s.rsplit(sep: str)``
5153
* ``s.rsplit(sep: str, maxsplit: int)``
54+
* ``s.rstrip()``
55+
* ``s.rstrip(chars: str)``
5256
* ``s.split()``
5357
* ``s.split(sep: str)``
5458
* ``s.split(sep: str, maxsplit: int)``
5559
* ``s.splitlines()``
5660
* ``s.splitlines(keepends: bool)``
5761
* ``s1.startswith(s2: str)``
5862
* ``s1.startswith(t: tuple[str, ...])``
63+
* ``s.strip()``
64+
* ``s.strip(chars: str)``
5965

6066
.. note::
6167

0 commit comments

Comments
 (0)