Update docs s/ucollections/collections/g
This commit is contained in:
parent
ad82a2d08d
commit
2ff7148d09
@ -1,9 +1,9 @@
|
|||||||
:mod:`ucollections` -- collection and container types
|
:mod:`collections` -- collection and container types
|
||||||
=====================================================
|
=====================================================
|
||||||
|
|
||||||
.. include:: ../templates/unsupported_in_circuitpython.inc
|
.. include:: ../templates/unsupported_in_circuitpython.inc
|
||||||
|
|
||||||
.. module:: ucollections
|
.. module:: collections
|
||||||
:synopsis: collection and container types
|
:synopsis: collection and container types
|
||||||
|
|
||||||
|see_cpython_module| :mod:`cpython:collections`.
|
|see_cpython_module| :mod:`cpython:collections`.
|
||||||
@ -24,7 +24,7 @@ Classes
|
|||||||
a string with space-separated field named (but this is less efficient).
|
a string with space-separated field named (but this is less efficient).
|
||||||
Example of use::
|
Example of use::
|
||||||
|
|
||||||
from ucollections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
||||||
MyTuple = namedtuple("MyTuple", ("id", "name"))
|
MyTuple = namedtuple("MyTuple", ("id", "name"))
|
||||||
t1 = MyTuple(1, "foo")
|
t1 = MyTuple(1, "foo")
|
||||||
@ -38,7 +38,7 @@ Classes
|
|||||||
added. When ordered dict is iterated over, keys/items are returned in
|
added. When ordered dict is iterated over, keys/items are returned in
|
||||||
the order they were added::
|
the order they were added::
|
||||||
|
|
||||||
from ucollections import OrderedDict
|
from collections import OrderedDict
|
||||||
|
|
||||||
# To make benefit of ordered keys, OrderedDict should be initialized
|
# To make benefit of ordered keys, OrderedDict should be initialized
|
||||||
# from sequence of (key, value) pairs.
|
# from sequence of (key, value) pairs.
|
@ -21,7 +21,7 @@ Python standard libraries and micro-libraries
|
|||||||
gc.rst
|
gc.rst
|
||||||
sys.rst
|
sys.rst
|
||||||
binascii.rst
|
binascii.rst
|
||||||
ucollections.rst
|
collections.rst
|
||||||
uerrno.rst
|
uerrno.rst
|
||||||
hashlib.rst
|
hashlib.rst
|
||||||
uheapq.rst
|
uheapq.rst
|
||||||
|
Loading…
x
Reference in New Issue
Block a user