Path to this page:
Subject: CVS commit: pkgsrc/devel/py-attrs
From: Adam Ciarcinski
Date: 2017-02-13 19:57:06
Message id: 20170213185706.18B38FBE3@cvs.NetBSD.org
Log Message:
Changes 16.3.0:
* Attributes now can have user-defined metadata which greatly improves \
attrsâs extensibility.
* Allow for a __attrs_post_init__ method that â if defined â will get \
called at the end of the attrs-generated __init__ method.
* Add @attr.s(str=True) that will optionally create a __str__ method that is \
identical to __repr__. This is mainly useful with Exceptions and other classes \
that rely on a useful __str__ implementation but overwrite the default one \
through a poor own one. Default Python class behavior is to use __repr__ as \
__str__ anyways.
If you tried using attrs with Exceptions and were puzzled by the tracebacks: \
this option is for you.
* Donât overwrite __name__ with __qualname__ for attr.s(slots=True) classes.
Files: