diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-04-27 15:43:48 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-04-27 15:43:48 +0300 |
commit | df4e1d1279aad106cafe83330046351201fb990f (patch) | |
tree | 08bc421836d02d7b6c0958d820fc9e75f78d5bdf /docs/library | |
parent | 31300b5144a2f9ffe934a6760fa347d9284c9591 (diff) |
docs/library: Consistently use admonitions for CPython differences.
Diffstat (limited to 'docs/library')
-rw-r--r-- | docs/library/usocket.rst | 5 | ||||
-rw-r--r-- | docs/library/utime.rst | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/docs/library/usocket.rst b/docs/library/usocket.rst index adba00e9a..94a1dd213 100644 --- a/docs/library/usocket.rst +++ b/docs/library/usocket.rst @@ -171,9 +171,10 @@ Methods 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. - .. 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. .. method:: socket.read(size) diff --git a/docs/library/utime.rst b/docs/library/utime.rst index e678321f6..91d5fa6fb 100644 --- a/docs/library/utime.rst +++ b/docs/library/utime.rst @@ -100,9 +100,10 @@ Functions if you need calendar time, ``localtime()`` without argument is the best possibility 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, usually having microsecond precision. With MicroPython, only Unix port uses the same reference point, and if floating-point precision allows, |