attrs v16.2.0 Release Notes

Release Date: 2016-09-17 // over 7 years ago
  • 🔄 Changes: ^

    • ➕ Added attr.astuple() that -- similarly to attr.asdict() -- returns the instance as a tuple. #77 <https://github.com/python-attrs/attrs/issues/77>_
    • Converters now work with frozen classes. #76 <https://github.com/python-attrs/attrs/issues/76>_
    • Instantiation of attrs classes with converters is now significantly faster. #80 <https://github.com/python-attrs/attrs/pull/80>_
    • Pickling now works with slotted classes. #81 <https://github.com/python-attrs/attrs/issues/81>_
    • attr.assoc() now works with slotted classes. #84 <https://github.com/python-attrs/attrs/issues/84>_
    • The tuple returned by attr.fields() now also allows to access the Attribute instances by name. Yes, we've subclassed tuple so you don't have to! Therefore attr.fields(C).x is equivalent to the deprecated C.x and works with slotted classes. #88 <https://github.com/python-attrs/attrs/issues/88>_