diff options
| author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-04-22 22:35:31 +0300 |
|---|---|---|
| committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-04-22 22:37:14 +0300 |
| commit | 3bc9b571bb5e8ffdcdb3ce1e8b20c1fb90520c5b (patch) | |
| tree | 94f260956d4661eac38a62c7ee136244bac6a157 /docs/library/struct.rst | |
| parent | 5c8147528e46f5499bc6a5423cc1c6941af80ee3 (diff) | |
docs/ustruct: There's no complete "struct" module, only "ustruct" subset.
"ustruct" is good example of micro-ified module, so rather should belong
to the corresponding list.
Diffstat (limited to 'docs/library/struct.rst')
| -rw-r--r-- | docs/library/struct.rst | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/docs/library/struct.rst b/docs/library/struct.rst deleted file mode 100644 index 71ee5c9b7..000000000 --- a/docs/library/struct.rst +++ /dev/null @@ -1,25 +0,0 @@ -:mod:`struct` -- pack and unpack primitive data types -===================================================== - -.. module:: struct - :synopsis: pack and unpack primitive data types - -See `Python struct <https://docs.python.org/3/library/struct.html>`_ for more -information. - -Functions ---------- - -.. function:: calcsize(fmt) - - Return the number of bytes needed to store the given ``fmt``. - -.. function:: pack(fmt, v1, v2, ...) - - Pack the values ``v1``, ``v2``, ... according to the format string ``fmt``. - The return value is a bytes object encoding the values. - -.. function:: unpack(fmt, data) - - Unpack from the ``data`` according to the format string ``fmt``. - The return value is a tuple of the unpacked values. |
