File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -1706,6 +1706,14 @@ expression support in the :mod:`re` module).
17061706 lowercase letter ``'ß' `` is equivalent to ``"ss" ``. Since it is already
17071707 lowercase, :meth: `lower ` would do nothing to ``'ß' ``; :meth: `casefold `
17081708 converts it to ``"ss" ``.
1709+ For example:
1710+
1711+ .. doctest ::
1712+
1713+ >>> ' straße' .lower()
1714+ 'straße'
1715+ >>> ' straße' .casefold()
1716+ 'strasse'
17091717
17101718 The casefolding algorithm is
17111719 `described in section 3.13 'Default Case Folding' of the Unicode Standard
@@ -2162,7 +2170,12 @@ expression support in the :mod:`re` module).
21622170.. method :: str.lower()
21632171
21642172 Return a copy of the string with all the cased characters [4 ]_ converted to
2165- lowercase.
2173+ lowercase. For example:
2174+
2175+ .. doctest ::
2176+
2177+ >>> ' Lower Method Example' .lower()
2178+ 'lower method example'
21662179
21672180 The lowercasing algorithm used is
21682181 `described in section 3.13 'Default Case Folding' of the Unicode Standard
You can’t perform that action at this time.
0 commit comments