mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
use classmethod
This commit is contained in:
parent
86e78d1f2d
commit
0b9fb808a0
1 changed files with 1 additions and 1 deletions
|
@ -763,7 +763,7 @@ In addition to the methods inherited from tuples, named tuples support
|
|||
three additional methods and one attribute. To prevent conflicts with
|
||||
field names, the method and attribute names start with an underscore.
|
||||
|
||||
.. method:: somenamedtuple._make(iterable)
|
||||
.. classmethod:: somenamedtuple._make(iterable)
|
||||
|
||||
Class method that makes a new instance from an existing sequence or iterable.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue