Skip to content

Commit 5280bca

Browse files
committed
Revert "New attemptive with digraphs on stdtypes.rst"
This reverts commit 2fd3ca1.
1 parent 496da33 commit 5280bca

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

Doc/library/stdtypes.rst

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,22 +1759,18 @@ 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.
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::
1762+
rest lowercased. For example::
17721763

17731764
>>> 'PYTHON IS AMAZING'.capitalize()
17741765
'Python is amazing'
17751766
>>> 'Njemačka starts With a non-ASCII digraph'.capitalize()
17761767
'Njemačka starts with a non-ascii digraph'
1777-
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()
17781774

17791775

17801776
See also :meth:`title`.

0 commit comments

Comments
 (0)