2015-12-08 14:47:03 +00:00
Changelog
=========
Versions are year-based with a strict backwards compatibility policy.
The third digit is only for regressions.
2016-05-23 18:34:11 +00:00
16.1.0 (UNRELEASED)
-------------------
2016-08-08 10:11:06 +00:00
Deprecations:
^^^^^^^^^^^^^
- Accessing `` Attribute `` instances on class objects is now deprecated and will stop working in 2017.
If you need introspection please use the `` __attrs_attrs__ `` attribute that carries them too.
In the future, the attributes that are defined on the class body and are usually overwritten in your `` __init__ `` method are simply removed after `` @attr.s `` has been applied.
This will remove the confusing error message if you write your own `` __init__ `` and forget to initialize some attribute.
Instead you will get a straightforward `` AttributeError `` .
In other words: decorated classes will work more like plain Python classes which was always `` attrs `` 's goal.
2016-05-23 18:34:11 +00:00
Changes:
^^^^^^^^
2016-06-02 22:43:43 +00:00
- `` attr.asdict ` ` \ 's ` ` dict_factory `` arguments is now propagated on recursion.
`#45 <https://github.com/hynek/attrs/issues/45> `_
2016-08-08 06:44:30 +00:00
- `` attr.asdict `` and `` attr.has `` are significantly faster.
`#48 <https://github.com/hynek/attrs/issues/48> `_
2016-05-23 18:34:11 +00:00
----
2016-05-23 18:29:31 +00:00
16.0.0 (2016-05-23)
2015-12-08 15:34:45 +00:00
-------------------
2016-02-17 11:51:02 +00:00
Backward-incompatible changes:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Python 3.3 and 2.6 aren't supported anymore.
2016-02-17 12:52:21 +00:00
They may work by chance but any effort to keep them working has ceased.
2016-02-17 11:51:02 +00:00
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.
2015-12-08 15:34:45 +00:00
Changes:
^^^^^^^^
2016-03-31 11:12:13 +00:00
- `` __slots__ `` have arrived!
Classes now can automatically be `slots <https://docs.python.org/3.5/reference/datamodel.html#slots> `_ -style (and save your precious memory) just by passing `` slots=True `` .
`#35 <https://github.com/hynek/attrs/issues/35> `_
2016-05-23 15:33:13 +00:00
- 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 <https://github.com/hynek/attrs/issues/32> `_
- `` attr.asdict `` can now produce arbitrary mappings instead of Python `` dict ` ` \ s when provided with a ` ` dict_factory `` argument.
2016-05-15 00:04:02 +00:00
`#40 <https://github.com/hynek/attrs/issues/40> `_
2016-05-22 05:57:07 +00:00
- Multiple performance improvements.
2015-12-08 15:34:45 +00:00
2016-02-17 12:52:21 +00:00
----
2015-12-08 15:24:46 +00:00
15.2.0 (2015-12-08)
2015-12-08 14:47:03 +00:00
-------------------
Changes:
^^^^^^^^
- Add a `` convert `` argument to `` attr.ib `` , which allows specifying a function to run on arguments.
This allows for simple type conversions, e.g. with `` attr.ib(convert=int) `` .
2016-03-31 11:12:13 +00:00
`#26 <https://github.com/hynek/attrs/issues/26> `_
2015-12-08 14:47:03 +00:00
- Speed up object creation when attribute validators are used.
2016-03-31 11:12:13 +00:00
`#28 <https://github.com/hynek/attrs/issues/28> `_
2015-12-08 14:47:03 +00:00
2016-02-17 12:52:21 +00:00
----
2015-12-08 14:47:03 +00:00
15.1.0 (2015-08-20)
-------------------
Changes:
^^^^^^^^
- Add `` attr.validators.optional `` that wraps other validators allowing attributes to be `` None `` .
2016-03-31 11:12:13 +00:00
`#16 <https://github.com/hynek/attrs/issues/16> `_
2015-12-08 14:47:03 +00:00
- Fix multi-level inheritance.
2016-03-31 11:12:13 +00:00
`#24 <https://github.com/hynek/attrs/issues/24> `_
2015-12-08 14:47:03 +00:00
- Fix `` __repr__ `` to work for non-redecorated subclasses.
2016-03-31 11:12:13 +00:00
`#20 <https://github.com/hynek/attrs/issues/20> `_
2015-12-08 14:47:03 +00:00
2016-02-17 12:52:21 +00:00
----
2015-12-08 14:47:03 +00:00
15.0.0 (2015-04-15)
-------------------
Changes:
^^^^^^^^
Initial release.