Skip to content

Commit 2fd3ca1

Browse files
authored
New attemptive with digraphs on stdtypes.rst
1 parent e1f29ec commit 2fd3ca1

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

Doc/library/stdtypes.rst

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,18 +1759,22 @@ expression support in the :mod:`re` module).
17591759
.. method:: str.capitalize()
17601760

17611761
Return a copy of the string with its first character capitalized and the
1762-
rest lowercased. For example::
1762+
rest lowercased.
1763+
1764+
DZ, Dz, dz
1765+
DŽ, Dž, dž
1766+
IJ, ij
1767+
LJ, Lj, lj
1768+
NJ, Nj, nj
1769+
1770+
1771+
For example::
17631772

17641773
>>> 'PYTHON IS AMAZING'.capitalize()
17651774
'Python is amazing'
17661775
>>> 'Njemačka starts With a non-ASCII digraph'.capitalize()
17671776
'Njemačka starts with a non-ascii digraph'
1768-
>>> ' DZ, Dz, dz'.title()
1769-
>>> 'DŽ, Dž, dž '.title()
1770-
>>> 'IJ, ij'.title()
1771-
>>> 'LJ, Lj, lj '.title()
1772-
>>> 'NJ, Nj, nj '.title()
1773-
>>> 'ᵺ '.title()
1777+
17741778

17751779

17761780
See also :meth:`title`.

0 commit comments

Comments
 (0)