• Raymond Hettinger's avatar
    Minor fix-ups to named tuples: · 7bde1d11
    Raymond Hettinger authored
    * 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.
    7bde1d11
collections.py 4.47 KB