summaryrefslogtreecommitdiffstatshomepage
path: root/docs/library
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-04-09 00:06:54 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-04-09 00:06:54 +0300
commitbcf3c8bf17caad7a2f46ee69f1d9563d884c2f23 (patch)
tree624970be7658fbc3f1406a36e7f04258f0141a25 /docs/library
parent0a88b44248a7fafb01e98019e4b79547772ea206 (diff)
downloadmicropython-bcf3c8bf17caad7a2f46ee69f1d9563d884c2f23.tar.gz
micropython-bcf3c8bf17caad7a2f46ee69f1d9563d884c2f23.zip
docs/library/builtins: int: Add notice on byteorder param for to/from_bytes.
Diffstat (limited to 'docs/library')
-rw-r--r--docs/library/builtins.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/library/builtins.rst b/docs/library/builtins.rst
index d53c4d377b..46f762660a 100644
--- a/docs/library/builtins.rst
+++ b/docs/library/builtins.rst
@@ -67,6 +67,16 @@ All builtin functions are described here. They are also available via
.. class:: int()
+ .. classmethod:: from_bytes(bytes, byteorder)
+
+ In MicroPython, `byteorder` parameter must be positional (this is
+ compatible with CPython).
+
+ .. method:: to_bytes(size, byteorder)
+
+ In MicroPython, `byteorder` parameter must be positional (this is
+ compatible with CPython).
+
.. function:: isinstance()
.. function:: issubclass()