commit | e0734e7dc0dcccc91ed657191b804b3a846ad3f6 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Fri Jan 04 03:22:53 2008 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Fri Jan 04 03:22:53 2008 +0000 |
tree | 70cb770b9fb3fbca03fcbb1a53df10f69612a78b | |
parent | 123d5c9396a6c12d418bbdf6d7ec861537f4c199 [diff] |
Minor fix-ups to named tuples: * Make the _replace() method respect subclassing. * Using property() to make _fields read-only wasn't a good idea. It caused len(Point._fields) to fail. * Add note to _cast() about length checking and alternative with the star-operator.