FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-106318: Add examples for str.islower() docs by adorilson · Pull Request #144847 · python/cpython · GitHub

Repository navigation

Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .rst  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
20 changes: 20 additions & 0 deletions Doc/library/stdtypes.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -2289,6 +2289,23 @@ expression support in the :mod:`re` module).
Return ``True`` if all cased characters [4]_ in the string are lowercase and
there is at least one cased character, ``False`` otherwise.

For example:

.. doctest::

>>> 'banana'.islower()
True
>>> 'BANANA'.islower()
False
>>> 'baNana'.islower()
False
>>> ' '.islower()
False
>>> ''.islower()
False

See also :meth:`isupper` and :meth:`lower`.


.. method:: str.isnumeric()

Expand Down Expand Up @@ -2385,7 +2402,10 @@ expression support in the :mod:`re` module).
False
>>> ' '.isupper()
False
>>> ''.isupper()
False

See also :meth:`islower`.


.. _meth-str-join:
Expand Down
Loading

Back | FazBrowse Home | New Git URL