• Raymond Hettinger's avatar
    Sync-up named tuples with the latest version of the ASPN recipe. · d36a60e1
    Raymond Hettinger authored
    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.
    d36a60e1
collections.rst 14.9 KB