Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
df4e1d12
Commit
df4e1d12
authored
Apr 27, 2016
by
Paul Sokolovsky
Browse files
Options
Downloads
Patches
Plain Diff
docs/library: Consistently use admonitions for CPython differences.
parent
31300b51
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/library/usocket.rst
+3
-2
3 additions, 2 deletions
docs/library/usocket.rst
docs/library/utime.rst
+3
-2
3 additions, 2 deletions
docs/library/utime.rst
with
6 additions
and
4 deletions
docs/library/usocket.rst
+
3
−
2
View file @
df4e1d12
...
@@ -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:** c
losing the file object returned by makefile() WILL close the
C
losing 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)
...
...
This diff is collapsed.
Click to expand it.
docs/library/utime.rst
+
3
−
2
View file @
df4e1d12
...
@@ -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,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment