Skip to content

Commit bbc29e8

Browse files
authored
Add os, "socket", atexit, ssl, struct, traceback, math links
1 parent de7a90a commit bbc29e8

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

shared-bindings/atexit/__init__.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
//| These functions are run in the reverse order in which they were registered;
3535
//| if you register ``A``, ``B``, and ``C``, they will be run in the order ``C``, ``B``, ``A``.
3636
//|
37+
//| |see_cpython_module| :mod:`cpython:atexit`.
3738
//| """
3839
//| ...
3940
//|

shared-bindings/math/__init__.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,7 @@
4343
//| The `math` module provides some basic mathematical functions for
4444
//| working with floating-point numbers.
4545
//|
46-
//| This library is a subset of the CPython library. All code using this
47-
//| library should function in CPython, but not necessarily the other way
48-
//| around. For more information about the `math` module, see the
49-
//| CPython documentation:
50-
//|
51-
//| https://docs.python.org/3/library/math.html
46+
//| |see_cpython_module| :mod:`cpython:math`.
5247
//| """
5348
//|
5449

shared-bindings/os/__init__.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,7 @@
3939

4040
//| """functions that an OS normally provides
4141
//|
42-
//| The `os` module is a strict subset of the CPython `cpython:os` module. So,
43-
//| code written in CircuitPython will work in CPython but not necessarily the
44-
//| other way around.
45-
//|
46-
//| For more information about the `os` module, see the CPython documentation:
47-
//| https://docs.python.org/3/library/os.html
42+
//| |see_cpython_module| :mod:`cpython:os`.
4843
//| """
4944
//|
5045
//| import typing

shared-bindings/socketpool/__init__.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
//| """
3636
//| The `socketpool` module provides sockets through a pool. The pools themselves
3737
//| act like CPython's `socket` module.
38+
//|
39+
//| For more infomration about the `socket` module, see the CPython documentation:
40+
//| https://docs.python.org/3/library/socket.html
3841
//| """
3942
//|
4043

shared-bindings/ssl/__init__.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@
3333

3434
//| """
3535
//| The `ssl` module provides SSL contexts to wrap sockets in.
36+
//|
37+
//| This module is a strict subset of the CPython `ssl` module.
38+
//| So, code written in CircuitPython will work in CPython but not
39+
//| necessarily the other way around.
40+
//|
41+
//| For more information about the `ssl` module see the CPython documentation
42+
//| https://docs.python.org/3/library/ssl.html
3643
//| """
3744
//|
3845

shared-bindings/struct/__init__.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@
4040

4141
//| """Manipulation of c-style data
4242
//|
43-
//| This module implements a subset of the corresponding CPython module,
44-
//| as described below. For more information, refer to the original CPython
45-
//| documentation: struct.
43+
//| |see_cpython_module| :mod:`cpython:struct`.
4644
//|
4745
//| Supported size/byte order prefixes: *@*, *<*, *>*, *!*.
4846
//|

shared-bindings/traceback/__init__.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
//| This module provides a standard interface to print stack traces of programs.
3535
//| This is useful when you want to print stack traces under program control.
3636
//|
37+
//| |see_cpython_module| :mod:`cpython:traceback`.
3738
//| """
3839
//| ...
3940
//|

0 commit comments

Comments
 (0)