diff options
author | Raymond Hettinger <python@rcn.com> | 2008-01-04 03:22:53 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2008-01-04 03:22:53 (GMT) |
commit | e0734e7dc0dcccc91ed657191b804b3a846ad3f6 (patch) | |
tree | 70cb770b9fb3fbca03fcbb1a53df10f69612a78b /Objects/intobject.c | |
parent | 123d5c9396a6c12d418bbdf6d7ec861537f4c199 (diff) | |
download | cpython-e0734e7dc0dcccc91ed657191b804b3a846ad3f6.zip cpython-e0734e7dc0dcccc91ed657191b804b3a846ad3f6.tar.gz cpython-e0734e7dc0dcccc91ed657191b804b3a846ad3f6.tar.bz2 |
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.
Diffstat (limited to 'Objects/intobject.c')
0 files changed, 0 insertions, 0 deletions