]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
use classmethod
authorBenjamin Peterson <benjamin@python.org>
Sun, 18 Jul 2010 14:23:36 +0000 (14:23 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 18 Jul 2010 14:23:36 +0000 (14:23 +0000)
Doc/library/collections.rst

index d084179ca7b6da5b8f08c98a15a740694d2fc7f5..222c2481b42cb6f0d711f3ea5a57ddb8ebaedc9a 100644 (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.