]> granicus.if.org Git - python/commit
Add comments to NamedTuple code.
authorRaymond Hettinger <python@rcn.com>
Mon, 8 Oct 2007 09:14:28 +0000 (09:14 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 8 Oct 2007 09:14:28 +0000 (09:14 +0000)
commit2115bbc4da683e6878b361a80c74203a2559e61d
tree6336a03ba5981375fed9fb7d88f287535a0fcf57
parenta970c2216645a86b532f68bfb93b8ec9da858b0d
Add comments to NamedTuple code.
Let the field spec be either a string or a non-string sequence (suggested by Martin Blais with use cases).
Improve the error message in the case of a SyntaxError (caused by a duplicate field name).
Doc/library/collections.rst
Lib/collections.py
Lib/test/test_collections.py