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
871a45dd
Commit
871a45dd
authored
Jun 29, 2017
by
Paul Sokolovsky
Browse files
Options
Downloads
Patches
Plain Diff
docs/{uselect,ussl,ustruct}: Use markup adhering to latest docs conventions.
parent
f2babeae
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/library/uselect.rst
+1
-1
1 addition, 1 deletion
docs/library/uselect.rst
docs/library/ussl.rst
+2
-2
2 additions, 2 deletions
docs/library/ussl.rst
docs/library/ustruct.rst
+8
-8
8 additions, 8 deletions
docs/library/ustruct.rst
with
11 additions
and
11 deletions
docs/library/uselect.rst
+
1
−
1
View file @
871a45dd
...
...
@@ -52,7 +52,7 @@ Methods
Wait for at least one of the registered objects to become ready. Returns
list of (``obj``, ``event``, ...) tuples, ``event`` element specifies
which events happened with a stream and is a combination of `select.POLL*`
which events happened with a stream and is a combination of
`
`select.POLL*`
`
constants described above. There may be other elements in tuple, depending
on a platform and version, so don't assume that its size is 2. In case of
timeout, an empty list is returned.
...
...
This diff is collapsed.
Click to expand it.
docs/library/ussl.rst
+
2
−
2
View file @
871a45dd
...
...
@@ -13,7 +13,7 @@ Functions
.. function:: ssl.wrap_socket(sock, server_side=False, keyfile=None, certfile=None, cert_reqs=CERT_NONE, ca_certs=None)
Takes a stream
`
sock
`
(usually usocket.socket instance of ``SOCK_STREAM`` type),
Takes a stream
*
sock
*
(usually usocket.socket instance of ``SOCK_STREAM`` type),
and returns an instance of ssl.SSLSocket, which wraps the underlying stream in
an SSL context. Returned object has the usual stream interface methods like
`read()`, `write()`, etc. In MicroPython, the returned object does not expose
...
...
@@ -43,4 +43,4 @@ Constants
ssl.CERT_OPTIONAL
ssl.CERT_REQUIRED
Supported values for
`
cert_reqs
`
parameter.
Supported values for
*
cert_reqs
*
parameter.
This diff is collapsed.
Click to expand it.
docs/library/ustruct.rst
+
8
−
8
View file @
871a45dd
...
...
@@ -18,26 +18,26 @@ Functions
.. function:: calcsize(fmt)
Return the number of bytes needed to store the given
`
fmt
`
.
Return the number of bytes needed to store the given
*
fmt
*
.
.. function:: pack(fmt, v1, v2, ...)
Pack the values
`
v1
`
,
`
v2
`
, ... according to the format string
`
fmt
`
.
Pack the values
*
v1
*
,
*
v2
*
, ... according to the format string
*
fmt
*
.
The return value is a bytes object encoding the values.
.. function:: pack_into(fmt, buffer, offset, v1, v2, ...)
Pack the values
`
v1
`
,
`
v2
`
, ... according to the format string
`
fmt
`
into a
`
buffer
`
starting at
`
offset
`
.
`
offset
`
may be negative to count
from the end of
`
buffer
`
.
Pack the values
*
v1
*
,
*
v2
*
, ... according to the format string
*
fmt
*
into a
*
buffer
*
starting at
*
offset
*
.
*
offset
*
may be negative to count
from the end of
*
buffer
*
.
.. function:: unpack(fmt, data)
Unpack from the
`
data
`
according to the format string
`
fmt
`
.
Unpack from the
*
data
*
according to the format string
*
fmt
*
.
The return value is a tuple of the unpacked values.
.. function:: unpack_from(fmt, data, offset=0)
Unpack from the
`
data
`
starting at
`
offset
`
according to the format string
`
fmt
`
.
`
offset
`
may be negative to count from the end of
`
buffer
`
. The return
Unpack from the
*
data
*
starting at
*
offset
*
according to the format string
*
fmt
*
.
*
offset
*
may be negative to count from the end of
*
buffer
*
. The return
value is a tuple of the unpacked values.
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