use classmethod

This commit is contained in:
Benjamin Peterson 2010-07-18 14:23:36 +00:00
parent 86e78d1f2d
commit 0b9fb808a0

View file

@ -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.