attrs v16.2.0 Release Notes
Release Date: 2016-09-17 // over 7 years ago-
🔄 Changes: ^
- ➕ Added
attr.astuple()
that -- similarly toattr.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 theAttribute
instances by name. Yes, we've subclassedtuple
so you don't have to! Thereforeattr.fields(C).x
is equivalent to the deprecatedC.x
and works with slotted classes.#88 <https://github.com/python-attrs/attrs/issues/88>
_
- ➕ Added