Skip to content

Commit ee938f4

Browse files
committed
Deploying to gh-pages from @ 80b8e3b 🚀
1 parent 3d8c352 commit ee938f4

File tree

598 files changed

+1354
-966
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

598 files changed

+1354
-966
lines changed

_sources/c-api/conversion.rst.txt

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,58 @@ The following functions provide locale-independent string to number conversions.
172172
173173
Case insensitive comparison of strings. The function works almost
174174
identically to :c:func:`!strncmp` except that it ignores the case.
175+
176+
177+
Character classification and conversion
178+
=======================================
179+
180+
The following macros provide locale-independent (unlike the C standard library
181+
``ctype.h``) character classification and conversion.
182+
The argument must be a signed or unsigned :c:expr:`char`.
183+
184+
185+
.. c:macro:: Py_ISALNUM(c)
186+
187+
Return true if the character *c* is an alphanumeric character.
188+
189+
190+
.. c:macro:: Py_ISALPHA(c)
191+
192+
Return true if the character *c* is an alphabetic character (``a-z`` and ``A-Z``).
193+
194+
195+
.. c:macro:: Py_ISDIGIT(c)
196+
197+
Return true if the character *c* is a decimal digit (``0-9``).
198+
199+
200+
.. c:macro:: Py_ISLOWER(c)
201+
202+
Return true if the character *c* is a lowercase ASCII letter (``a-z``).
203+
204+
205+
.. c:macro:: Py_ISUPPER(c)
206+
207+
Return true if the character *c* is an uppercase ASCII letter (``A-Z``).
208+
209+
210+
.. c:macro:: Py_ISSPACE(c)
211+
212+
Return true if the character *c* is a whitespace character (space, tab,
213+
carriage return, newline, vertical tab, or form feed).
214+
215+
216+
.. c:macro:: Py_ISXDIGIT(c)
217+
218+
Return true if the character *c* is a hexadecimal digit (``0-9``, ``a-f``, and
219+
``A-F``).
220+
221+
222+
.. c:macro:: Py_TOLOWER(c)
223+
224+
Return the lowercase equivalent of the character *c*.
225+
226+
227+
.. c:macro:: Py_TOUPPER(c)
228+
229+
Return the uppercase equivalent of the character *c*.

_sources/glossary.rst.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,6 +1025,15 @@ Glossary
10251025
applied to all scopes, only those relying on a known set of local
10261026
and nonlocal variable names are restricted to optimized scopes.
10271027

1028+
optional module
1029+
An :term:`extension module` that is part of the :term:`standard library`,
1030+
but may be absent in some builds of :term:`CPython`,
1031+
usually due to missing third-party libraries or because the module
1032+
is not available for a given platform.
1033+
1034+
See :ref:`optional-module-requirements` for a list of optional modules
1035+
that require third-party libraries.
1036+
10281037
package
10291038
A Python :term:`module` which can contain submodules or recursively,
10301039
subpackages. Technically, a package is a Python module with a

_sources/library/bz2.rst.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ The :mod:`bz2` module contains:
2525
* The :func:`compress` and :func:`decompress` functions for one-shot
2626
(de)compression.
2727

28+
.. include:: ../includes/optional-module.rst
29+
2830

2931
(De)compression of files
3032
------------------------

_sources/library/compression.zstd.rst.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ The :mod:`!compression.zstd` module contains:
3333
* The :class:`CompressionParameter`, :class:`DecompressionParameter`, and
3434
:class:`Strategy` classes for setting advanced (de)compression parameters.
3535

36+
.. include:: ../includes/optional-module.rst
37+
3638

3739
Exceptions
3840
----------

_sources/library/ctypes.rst.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
data types, and allows calling functions in DLLs or shared libraries. It can be
1515
used to wrap these libraries in pure Python.
1616

17+
.. include:: ../includes/optional-module.rst
18+
1719

1820
.. _ctypes-ctypes-tutorial:
1921

_sources/library/curses.rst.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Linux and the BSD variants of Unix.
2323

2424
.. include:: ../includes/wasm-mobile-notavail.rst
2525

26+
.. include:: ../includes/optional-module.rst
27+
2628
.. note::
2729

2830
Whenever the documentation mentions a *character* it can be specified

_sources/library/ensurepip.rst.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ when creating a virtual environment) or after explicitly uninstalling
3030
needed to bootstrap ``pip`` are included as internal parts of the
3131
package.
3232

33+
.. include:: ../includes/optional-module.rst
34+
3335
.. seealso::
3436

3537
:ref:`installing-index`

_sources/library/functions.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1887,7 +1887,7 @@ are always available. They are listed here in alphabetical order.
18871887
the same data with other ordering tools such as :func:`max` that rely
18881888
on a different underlying method. Implementing all six comparisons
18891889
also helps avoid confusion for mixed type comparisons which can call
1890-
reflected the :meth:`~object.__gt__` method.
1890+
the reflected :meth:`~object.__gt__` method.
18911891

18921892
For sorting examples and a brief sorting tutorial, see :ref:`sortinghowto`.
18931893

_sources/library/gzip.rst.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
This module provides a simple interface to compress and decompress files just
1212
like the GNU programs :program:`gzip` and :program:`gunzip` would.
1313

14+
.. include:: ../includes/optional-module.rst
15+
1416
The data compression is provided by the :mod:`zlib` module.
1517

1618
The :mod:`gzip` module provides the :class:`GzipFile` class, as well as the

_sources/library/idle.rst.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ IDLE has the following features:
3737

3838
* configuration, browsers, and other dialogs
3939

40+
The IDLE application is implemented in the :mod:`idlelib` package.
41+
42+
.. include:: ../includes/optional-module.rst
43+
4044
Menus
4145
-----
4246

0 commit comments

Comments
 (0)