[Python-checkins] r85605 - python/branches/release27-maint/Doc/library/collections.rst

georg.brandl python-checkins at python.org
Sun Oct 17 08:24:10 CEST 2010


Author: georg.brandl
Date: Sun Oct 17 08:24:10 2010
New Revision: 85605

Log:
Note default values for namedtuple extra args.

Modified:
   python/branches/release27-maint/Doc/library/collections.rst

Modified: python/branches/release27-maint/Doc/library/collections.rst
==============================================================================
--- python/branches/release27-maint/Doc/library/collections.rst	(original)
+++ python/branches/release27-maint/Doc/library/collections.rst	Sun Oct 17 08:24:10 2010
@@ -566,7 +566,7 @@
 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


More information about the Python-checkins mailing list