summaryrefslogtreecommitdiffstatshomepage
path: root/docs/library
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-08-20 09:04:48 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-08-20 09:04:48 +0300
commitccaad5327087eb93c3c5329b02ba7c11d95c0487 (patch)
tree5ad24aa1d71fe9051bcd9f12fb581a442c284f66 /docs/library
parent478887c62ffae50cbb8e60e24405e2a4eae7b322 (diff)
downloadmicropython-ccaad5327087eb93c3c5329b02ba7c11d95c0487.tar.gz
micropython-ccaad5327087eb93c3c5329b02ba7c11d95c0487.zip
docs/library/usocket: Move socket.error to its own section.
It's too minor a point to start the module description with it.
Diffstat (limited to 'docs/library')
-rw-r--r--docs/library/usocket.rst16
1 files changed, 10 insertions, 6 deletions
diff --git a/docs/library/usocket.rst b/docs/library/usocket.rst
index 70d4f49fc2..18a8f8fcd5 100644
--- a/docs/library/usocket.rst
+++ b/docs/library/usocket.rst
@@ -12,12 +12,6 @@ This module provides access to the BSD socket interface.
.. admonition:: Difference to CPython
:class: attention
- CPython used to have a ``socket.error`` exception which is now deprecated,
- and is an alias of `OSError`. In MicroPython, use `OSError` directly.
-
-.. admonition:: Difference to CPython
- :class: attention
-
For efficiency and consistency, socket objects in MicroPython implement a stream
(file-like) interface directly. In CPython, you need to convert a socket to
a file-like object using `makefile()` method. This method is still supported
@@ -250,3 +244,13 @@ Methods
the length of *buf*.
Return value: number of bytes written.
+
+.. exception:: socket.error
+
+ MicroPython does NOT have this exception.
+
+ .. admonition:: Difference to CPython
+ :class: attention
+
+ CPython used to have a ``socket.error`` exception which is now deprecated,
+ and is an alias of `OSError`. In MicroPython, use `OSError` directly.