File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1850,8 +1850,8 @@ changes, or look through the Subversion logs for all the details.
1850
1850
special values and floating-point exceptions in a manner consistent
1851
1851
with Annex 'G' of the C99 standard.
1852
1852
1853
- * A new data type in the :mod: `collections ` module: :class: ` namedtuple(typename,
1854
- fieldnames) ` is a factory function that creates subclasses of the standard tuple
1853
+ * A new data type in the :mod: `collections ` module: `` namedtuple(typename, fieldnames) ``
1854
+ is a factory function that creates subclasses of the standard tuple
1855
1855
whose fields are accessible by name as well as index. For example::
1856
1856
1857
1857
>>> var_type = collections.namedtuple('variable',
@@ -1873,7 +1873,7 @@ changes, or look through the Subversion logs for all the details.
1873
1873
variable(id=1, name='amplitude', type='int', size=4)
1874
1874
1875
1875
Several places in the standard library that returned tuples have
1876
- been modified to return :class : `namedtuple ` instances. For example,
1876
+ been modified to return :func : `namedtuple ` instances. For example,
1877
1877
the :meth: `Decimal.as_tuple ` method now returns a named tuple with
1878
1878
:attr: `sign `, :attr: `digits `, and :attr: `exponent ` fields.
1879
1879
Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ Implement :pep:`572` (assignment expressions). Patch by Emily Morehouse.
380
380
.. nonce: voIdcp
381
381
.. section: Core and Builtins
382
382
383
- Speed up :class : `namedtuple ` attribute access by 1.6x using a C fast-path
383
+ Speed up :func : `namedtuple ` attribute access by 1.6x using a C fast-path
384
384
for the name descriptors. Patch by Pablo Galindo.
385
385
386
386
..
You can’t perform that action at this time.
0 commit comments