[Python-checkins] (no subject)

Stéphane Wirtel webhook-mailer at python.org
Fri Sep 13 05:20:09 EDT 2019




To: python-checkins at python.org
Subject: Doc: Add example snippet for str.isupper() (GH-14681)
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

https://github.com/python/cpython/commit/7183064e9e2a1b19f2ff469a65a34e709448=
3881
commit: 7183064e9e2a1b19f2ff469a65a34e7094483881
branch: master
author: Kishore Vancheeshwaran <24776049+kishvanchee at users.noreply.github.com>
committer: St=C3=A9phane Wirtel <stephane at wirtel.be>
date: 2019-09-13T10:20:01+01:00
summary:

Doc: Add example snippet for str.isupper() (GH-14681)

files:
M Doc/library/stdtypes.rst

diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 426d768b170e..a21c5538cbcc 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -1782,6 +1782,16 @@ expression support in the :mod:`re` module).
    Return true if all cased characters [4]_ in the string are uppercase and
    there is at least one cased character, false otherwise.
=20
+      >>> 'BANANA'.isupper()
+      True
+      >>> 'banana'.isupper()
+      False
+      >>> 'baNana'.isupper()
+      False
+      >>> ' '.isupper()
+      False
+
+
=20
 .. method:: str.join(iterable)
=20



More information about the Python-checkins mailing list