Skip to content
This repository was archived by the owner on Oct 28, 2023. It is now read-only.

Commit ccaad53

Browse files
committed
docs/library/usocket: Move socket.error to its own section.
It's too minor a point to start the module description with it.
1 parent 478887c commit ccaad53

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

docs/library/usocket.rst

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@
99

1010
This module provides access to the BSD socket interface.
1111

12-
.. admonition:: Difference to CPython
13-
:class: attention
14-
15-
CPython used to have a ``socket.error`` exception which is now deprecated,
16-
and is an alias of `OSError`. In MicroPython, use `OSError` directly.
17-
1812
.. admonition:: Difference to CPython
1913
:class: attention
2014

@@ -250,3 +244,13 @@ Methods
250244
the length of *buf*.
251245

252246
Return value: number of bytes written.
247+
248+
.. exception:: socket.error
249+
250+
MicroPython does NOT have this exception.
251+
252+
.. admonition:: Difference to CPython
253+
:class: attention
254+
255+
CPython used to have a ``socket.error`` exception which is now deprecated,
256+
and is an alias of `OSError`. In MicroPython, use `OSError` directly.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy