summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-10-17 06:24:10 (GMT)
committerGeorg Brandl <georg@python.org>2010-10-17 06:24:10 (GMT)
commit27fa482afd8d95dba3e869c0be1dc8762b6c6718 (patch)
tree41546d8ee729e1b07d9a5228275480092f288dc4
parent92e6972c5324c235804a116884e5f226319ac4df (diff)
downloadcpython-27fa482afd8d95dba3e869c0be1dc8762b6c6718.zip
cpython-27fa482afd8d95dba3e869c0be1dc8762b6c6718.tar.gz
cpython-27fa482afd8d95dba3e869c0be1dc8762b6c6718.tar.bz2
Note default values for namedtuple extra args.
-rw-r--r--Doc/library/collections.rst2
1 files changed, 1 insertions, 1 deletions
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