Skip to content
Snippets Groups Projects
Commit df4e1d12 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

docs/library: Consistently use admonitions for CPython differences.

parent 31300b51
No related branches found
No related tags found
No related merge requests found
...@@ -171,9 +171,10 @@ Methods ...@@ -171,9 +171,10 @@ Methods
The socket must be in blocking mode; it can have a timeout, but the file object’s internal buffer The socket must be in blocking mode; it can have a timeout, but the file object’s internal buffer
may end up in a inconsistent state if a timeout occurs. may end up in a inconsistent state if a timeout occurs.
.. note:: .. admonition:: Difference to CPython
:class: attention
**CPython difference:** closing the file object returned by makefile() WILL close the Closing the file object returned by makefile() WILL close the
original socket as well. original socket as well.
.. method:: socket.read(size) .. method:: socket.read(size)
......
...@@ -100,9 +100,10 @@ Functions ...@@ -100,9 +100,10 @@ Functions
if you need calendar time, ``localtime()`` without argument is the best possibility if you need calendar time, ``localtime()`` without argument is the best possibility
to get it. to get it.
.. note:: .. admonition:: Difference to CPython
:class: attention
**CPython difference:** In CPython, this function returns number of In CPython, this function returns number of
seconds since Unix epoch, 1970-01-01 00:00 UTC, as a floating-point, seconds since Unix epoch, 1970-01-01 00:00 UTC, as a floating-point,
usually having microsecond precision. With MicroPython, only Unix port usually having microsecond precision. With MicroPython, only Unix port
uses the same reference point, and if floating-point precision allows, uses the same reference point, and if floating-point precision allows,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment