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 @@ -1844,6 +1844,14 @@ expression support in the :mod:`re` module).
18441844 lowercase letter ``'ß' `` is equivalent to ``"ss" ``. Since it is already
18451845 lowercase, :meth: `lower ` would do nothing to ``'ß' ``; :meth: `casefold `
18461846 converts it to ``"ss" ``.
1847+ For example:
1848+
1849+ .. doctest ::
1850+
1851+ >>> ' straße' .lower()
1852+ 'straße'
1853+ >>> ' straße' .casefold()
1854+ 'strasse'
18471855
18481856 The casefolding algorithm is `described in section 3.13.3 'Default Case
18491857 Folding' of the Unicode Standard
@@ -2300,7 +2308,12 @@ expression support in the :mod:`re` module).
23002308.. method :: str.lower()
23012309
23022310 Return a copy of the string with all the cased characters [4 ]_ converted to
2303- lowercase.
2311+ lowercase. For example:
2312+
2313+ .. doctest ::
2314+
2315+ >>> ' Lower Method Example' .lower()
2316+ 'lower method example'
23042317
23052318 The lowercasing algorithm used is `described in section 3.13.2 'Default Case
23062319 Conversion' of the Unicode Standard
You can’t perform that action at this time.
0 commit comments