]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Sync-up named tuples with the latest version of the ASPN recipe.
authorRaymond Hettinger <python@rcn.com>
Mon, 17 Sep 2007 00:55:00 +0000 (00:55 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 17 Sep 2007 00:55:00 +0000 (00:55 +0000)
commitd36a60e1e3410450d337d4de732e127e48a6a042
tree00c975e8766388d640629ec794061a33e96c3366
parentbf10c47389d13b97e75855b262e077bfa688968c
Sync-up named tuples with the latest version of the ASPN recipe.
Allows optional commas in the field-name spec (help when named tuples are used in conjuction with sql queries).
Adds the __fields__ attribute for introspection and to support conversion to dictionary form.
Adds a  __replace__() method similar to str.replace() but using a named field as a target.
Clean-up spelling and presentation in doc-strings.
Doc/library/collections.rst
Lib/collections.py
Lib/test/test_collections.py