Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e3b6ff1

Browse files
tiranmerwokmdboomezio-melottiCAM-Gerlach
authored
gh-95451: Update docs for wasm32-emscripten and -wasi platforms (GH-95452)
Co-authored-by: Éric <[email protected]> Co-authored-by: Michael Droettboom <[email protected]> Co-authored-by: Ezio Melotti <[email protected]> Co-authored-by: CAM Gerlach <[email protected]>
1 parent 75a6441 commit e3b6ff1

Some content is hidden

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

46 files changed

+322
-105
lines changed

Doc/includes/wasm-notavail.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.. include for modules that don't work on WASM
2+
3+
.. availability:: not Emscripten, not WASI.
4+
5+
This module does not work or is not available on WebAssembly platforms
6+
``wasm32-emscripten`` and ``wasm32-wasi``. See
7+
:ref:`wasm-availability` for more information.

Doc/library/asynchat.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Typically an :class:`asyncore.dispatcher` server channel generates new
3434
:class:`asynchat.async_chat` channel objects as it receives incoming
3535
connection requests.
3636

37+
.. include:: ../includes/wasm-notavail.rst
3738

3839
.. class:: async_chat()
3940

Doc/library/asyncio.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Additionally, there are **low-level** APIs for
5656
* :ref:`bridge <asyncio-futures>` callback-based libraries and code
5757
with async/await syntax.
5858

59+
.. include:: ../includes/wasm-notavail.rst
5960

6061
.. We use the "rubric" directive here to avoid creating
6162
the "Reference" subsection in the TOC.

Doc/library/asyncore.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
This module provides the basic infrastructure for writing asynchronous socket
2929
service clients and servers.
3030

31+
.. include:: ../includes/wasm-notavail.rst
32+
3133
There are only two ways to have a program on a single processor do "more than
3234
one thing at a time." Multi-threaded programming is the simplest and most
3335
popular way to do it, but there is another very different technique, that lets

Doc/library/cgi.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ size of a POST request. POST requests larger than this size will result in a
3737
:exc:`ValueError` being raised during parsing. The default value of this
3838
variable is ``0``, meaning the request size is unlimited.
3939

40+
.. include:: ../includes/wasm-notavail.rst
4041

4142
Introduction
4243
------------

Doc/library/compileall.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This module can be used to create the cached byte-code files at library
1414
installation time, which makes them available for use even by users who don't
1515
have write permission to the library directories.
1616

17+
.. include:: ../includes/wasm-notavail.rst
1718

1819
Command-line use
1920
----------------

Doc/library/concurrent.futures.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ The asynchronous execution can be performed with threads, using
1919
:class:`ProcessPoolExecutor`. Both implement the same interface, which is
2020
defined by the abstract :class:`Executor` class.
2121

22+
.. include:: ../includes/wasm-notavail.rst
2223

2324
Executor Objects
2425
----------------

Doc/library/crypt.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ this module.
3838

3939
.. availability:: Unix, not VxWorks.
4040

41+
.. include:: ../includes/wasm-notavail.rst
42+
4143
Hashing Methods
4244
---------------
4345

Doc/library/ensurepip.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ when creating a virtual environment) or after explicitly uninstalling
3636
:pep:`453`: Explicit bootstrapping of pip in Python installations
3737
The original rationale and specification for this module.
3838

39+
.. include:: ../includes/wasm-notavail.rst
3940

4041
Command line interface
4142
----------------------

Doc/library/fcntl.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ interface to the :c:func:`fcntl` and :c:func:`ioctl` Unix routines. For a
1818
complete description of these calls, see :manpage:`fcntl(2)` and
1919
:manpage:`ioctl(2)` Unix manual pages.
2020

21+
.. include:: ../includes/wasm-notavail.rst
22+
2123
All functions in this module take a file descriptor *fd* as their first
2224
argument. This can be an integer file descriptor, such as returned by
2325
``sys.stdin.fileno()``, or an :class:`io.IOBase` object, such as ``sys.stdin``

0 commit comments

Comments
 (0)