]> granicus.if.org Git - python/commitdiff
Note default values for namedtuple extra args.
authorGeorg Brandl <georg@python.org>
Sun, 17 Oct 2010 06:24:10 +0000 (06:24 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 17 Oct 2010 06:24:10 +0000 (06:24 +0000)
Doc/library/collections.rst

index 12560e235e222865fdb290ce3855d7fd947b9e4d..7f98c591a608d98e557cca7aef44135d310bbc98 100644 (file)
@@ -566,7 +566,7 @@ Named tuples assign meaning to each position in a tuple and allow for more reada
 self-documenting code.  They can be used wherever regular tuples are used, and
 they add the ability to access fields by name instead of position index.
 
-.. function:: namedtuple(typename, field_names, [verbose], [rename])
+.. function:: namedtuple(typename, field_names, [verbose=False], [rename=False])
 
    Returns a new tuple subclass named *typename*.  The new subclass is used to
    create tuple-like objects that have fields accessible by attribute lookup as