Changelog¶
Versions are year-based with a strict backwards compatibility policy. The third digit is only for regressions.
16.0.0 (2016-05-23)¶
Backward-incompatible changes:¶
Python 3.3 and 2.6 aren’t supported anymore. They may work by chance but any effort to keep them working has ceased.
The last Python 2.6 release was on October 29, 2013 and isn’t supported by the CPython core team anymore. Major Python packages like Django and Twisted dropped Python 2.6 a while ago already.
Python 3.3 never had a significant user base and wasn’t part of any distribution’s LTS release.
Changes:¶
__slots__
have arrived! Classes now can automatically be slots-style (and save your precious memory) just by passingslots=True
. #35- Allow the case of initializing attributes that are set to
init=False
. This allows for clean initializer parameter lists while being able to initialize attributes to default values. #32 attr.asdict
can now produce arbitrary mappings instead of Pythondict
s when provided with adict_factory
argument. #40- Multiple performance improvements.