File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -2021,6 +2021,19 @@ expression support in the :mod:`re` module).
20212021 character, for example uppercase characters may only follow uncased characters
20222022 and lowercase characters only cased ones. Return ``False `` otherwise.
20232023
2024+ For example:
2025+
2026+ .. doctest ::
2027+
2028+ >>> ' Spam, Spam, Spam' .istitle()
2029+ True
2030+ >>> ' spam, spam, spam' .istitle()
2031+ False
2032+ >>> ' SPAM, SPAM, SPAM' .istitle()
2033+ False
2034+
2035+ See also :meth: `title `.
2036+
20242037
20252038.. method :: str.isupper()
20262039
@@ -2398,6 +2411,8 @@ expression support in the :mod:`re` module).
23982411 >>> titlecase("they're bill's friends.")
23992412 "They're Bill's Friends."
24002413
2414+ See also :meth: `istitle `.
2415+
24012416
24022417.. method :: str.translate(table, /)
24032418
You can’t perform that action at this time.
0 commit comments