diff options
Diffstat (limited to 'docs/library')
| -rw-r--r-- | docs/library/usocket.rst | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/docs/library/usocket.rst b/docs/library/usocket.rst index 70d4f49fc..18a8f8fcd 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. |
