8000 gh-95451: Update docs for wasm32-emscripten and -wasi platforms by tiran · Pull Request #95452 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-95451: Update docs for wasm32-emscripten and -wasi platforms #95452

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Aug 2, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter 8000

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Move some availability includes around
  • Loading branch information
tiran committed Aug 2, 2022
commit 1bf424a60844707a452f9f6b3744ebe6435db92b
4 changes: 2 additions & 2 deletions Doc/library/getpass.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@

--------------

The :mod:`getpass` module provides two functions:

.. include:: ../includes/wasm-notavail.rst

The :mod:`getpass` module provides two functions:

.. function:: getpass(prompt='Password: ', stream=None)

Prompt the user for a password without echoing. The user is prompted using
Expand Down
2 changes: 1 addition & 1 deletion Doc/library/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ DOM APIs as well as limited networking capabilities with JavaScript's
:mod:`subprocess` is importable but does not work.

* The :mod:`socket` module is available, but is limited and behaves
differently from other platforms. On Emscripten, sockets are always
differently from other platforms. On Emscripten, sockets are always
non-blocking and require additional JavaScript code and helpers on the
server to proxy TCP through WebSockets; see `Emscripten Networking`_
for more information. WASI snapshot preview 1 only permits sockets from an
Expand Down
8 changes: 4 additions & 4 deletions Doc/library/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -869,11 +869,11 @@ as internal buffering of data.
2: stderr), the new file descriptor is :ref:`inheritable
<fd_inheritance>`.

.. availability:: not WASI.

.. versionchanged:: 3.4
The new file descriptor is now non-inheritable.

.. availability:: not WASI.


.. function:: dup2(fd, fd2, inheritable=True)

Expand All @@ -882,14 +882,14 @@ as internal buffering of data.
<fd_inheritance>` by default or non-inheritable if *inheritable*
is ``False``.

.. availability:: not WASI.

.. versionchanged:: 3.4
Add the optional *inheritable* parameter.

.. versionchanged:: 3.7
Return *fd2* on success. Previously, ``None`` was always returned.

.. availability:: not WASI.


.. function:: fchmod(fd, mode)

Expand Down
2 changes: 1 addition & 1 deletion Doc/library/ssl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ probably additional platforms, as long as OpenSSL is installed on that platform.
may lead to a false sense of security, as the default settings of the
ssl module are not necessarily appropriate for your application.

.. include:: ../includes/wasm-notavail.rst

This section documents the objects and functions in the ``ssl`` module; for more
general information about TLS, SSL, and certificates, the reader is referred to
Expand Down Expand Up @@ -65,7 +66,6 @@ by SSL sockets created through the :meth:`SSLContext.wrap_socket` method.

Use of deprecated constants and functions result in deprecation warnings.

.. include:: ../includes/wasm-notavail.rst

Functions, Constants, and Exceptions
------------------------------------
Expand Down
0