commit | d36a60e1e3410450d337d4de732e127e48a6a042 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Mon Sep 17 00:55:00 2007 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Mon Sep 17 00:55:00 2007 +0000 |
tree | 00c975e8766388d640629ec794061a33e96c3366 | |
parent | bf10c47389d13b97e75855b262e077bfa688968c [diff] |
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.