diff --git a/shared-bindings/atexit/__init__.c b/shared-bindings/atexit/__init__.c index e6d1372ccf..dd27adaa98 100644 --- a/shared-bindings/atexit/__init__.c +++ b/shared-bindings/atexit/__init__.c @@ -34,6 +34,7 @@ //| These functions are run in the reverse order in which they were registered; //| if you register ``A``, ``B``, and ``C``, they will be run in the order ``C``, ``B``, ``A``. //| +//| |see_cpython_module| :mod:`cpython:atexit`. //| """ //| ... //| diff --git a/shared-bindings/math/__init__.c b/shared-bindings/math/__init__.c index 9df8e68169..54dbf004ad 100644 --- a/shared-bindings/math/__init__.c +++ b/shared-bindings/math/__init__.c @@ -43,12 +43,7 @@ //| The `math` module provides some basic mathematical functions for //| working with floating-point numbers. //| -//| This library is a subset of the CPython library. All code using this -//| library should function in CPython, but not necessarily the other way -//| around. For more information about the `math` module, see the -//| CPython documentation: -//| -//| https://docs.python.org/3/library/math.html +//| |see_cpython_module| :mod:`cpython:math`. //| """ //| diff --git a/shared-bindings/os/__init__.c b/shared-bindings/os/__init__.c index 3d468eb70f..2daca52b85 100644 --- a/shared-bindings/os/__init__.c +++ b/shared-bindings/os/__init__.c @@ -39,12 +39,7 @@ //| """functions that an OS normally provides //| -//| The `os` module is a strict subset of the CPython `cpython:os` module. So, -//| code written in CircuitPython will work in CPython but not necessarily the -//| other way around. -//| -//| For more information about the `os` module, see the CPython documentation: -//| https://docs.python.org/3/library/os.html +//| |see_cpython_module| :mod:`cpython:os`. //| """ //| //| import typing diff --git a/shared-bindings/socketpool/__init__.c b/shared-bindings/socketpool/__init__.c index f10196ab0d..b81aa238c8 100644 --- a/shared-bindings/socketpool/__init__.c +++ b/shared-bindings/socketpool/__init__.c @@ -35,6 +35,9 @@ //| """ //| The `socketpool` module provides sockets through a pool. The pools themselves //| act like CPython's `socket` module. +//| +//| For more infomration about the `socket` module, see the CPython documentation: +//| https://docs.python.org/3/library/socket.html //| """ //| diff --git a/shared-bindings/ssl/__init__.c b/shared-bindings/ssl/__init__.c index 578c51dfbe..8f32582635 100644 --- a/shared-bindings/ssl/__init__.c +++ b/shared-bindings/ssl/__init__.c @@ -33,6 +33,13 @@ //| """ //| The `ssl` module provides SSL contexts to wrap sockets in. +//| +//| This module is a strict subset of the CPython `ssl` module. +//| So, code written in CircuitPython will work in CPython but not +//| necessarily the other way around. +//| +//| For more information about the `ssl` module see the CPython documentation +//| https://docs.python.org/3/library/ssl.html //| """ //| diff --git a/shared-bindings/struct/__init__.c b/shared-bindings/struct/__init__.c index 84654a3afe..c29c33c1c0 100644 --- a/shared-bindings/struct/__init__.c +++ b/shared-bindings/struct/__init__.c @@ -40,9 +40,7 @@ //| """Manipulation of c-style data //| -//| This module implements a subset of the corresponding CPython module, -//| as described below. For more information, refer to the original CPython -//| documentation: struct. +//| |see_cpython_module| :mod:`cpython:struct`. //| //| Supported size/byte order prefixes: *@*, *<*, *>*, *!*. //| diff --git a/shared-bindings/traceback/__init__.c b/shared-bindings/traceback/__init__.c index aa21210494..880fe08e85 100644 --- a/shared-bindings/traceback/__init__.c +++ b/shared-bindings/traceback/__init__.c @@ -34,6 +34,7 @@ //| This module provides a standard interface to print stack traces of programs. //| This is useful when you want to print stack traces under program control. //| +//| |see_cpython_module| :mod:`cpython:traceback`. //| """ //| ... //|