From 27fa482afd8d95dba3e869c0be1dc8762b6c6718 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 17 Oct 2010 06:24:10 +0000 Subject: Note default values for namedtuple extra args. --- Doc/library/collections.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index 12560e2..7f98c59 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -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 -- cgit v0.12