N/A
2.1.0 - 2024-01-23
- Support for
rich.pretty
toautorepr
andReprHelperMixin
. RichReprHelper
.
2.0.0 - 2023-12-30
- Dropped support for Python < 3.8
- All previously deprecated items.
represent.__version__
etc. useimportlib.metadata
instead.
1.6.0.post0 - 2020-12-22
- Modernised packaging and ensure Python 3.8-3.9 are tested on CI. No functional changes.
1.6.0 - 2019-01-30
autorepr
andReprHelperMixin
now usereprlib.recursive_repr
if available. (#3)
autorepr
now assigns onenamedtuple
tocls._represent
instead of using three different class variables as before.
- Deprecation warnings were always raised instead of only when deprecated names were imported.
1.5.1 - 2016-05-29
- More tests for areas missing from code coverage.
- Links in the README to readthedocs and codecov.
autorepr
wouldn't create methods if a subclass had the same name as its parent. This check has been removed.
1.5.0 - 2016-05-25
autorepr
class decorator to replaceReprMixin
.autorepr
is a much cleaner solution, moving errors to class creation time instead of during__init__
. There are no caveats with pickling anymore.
The following names will raise deprecation warnings. They will be removed completely in 2.0.0.
ReprMixin
ReprMixinBase
1.4.1 - 2016-03-11
__slots__
added toReprHelperMixin
to allow subclasses to use__slots__
.
1.4.0 - 2015-09-02
BaseReprHelper
, base class forReprHelper
andPrettyReprHelper
to handle common functionality and enforce same API and docstrings.BaseReprHelper.parantheses
tuple can be set to something other than normal brackets, e.g.('<', '>')
BaseReprHelper.keyword_from_attr
parameter names swapped.attr_name
used to refer to keyword name, which doesn't make sense.
1.3.0 - 2015-05-07
ReprHelperMixin
to simplify manual generation
PrettyReprHelper.positional_from_attr()
didn't check for cycle, causing recursion limit to be reached for self-referential objects.
1.2.1 - 2015-05-02
__init__.py
was missing from represent.compat, so wasn't packaged for PyPI.
1.2.0 - 2015-05-02
RepresentationMixin
has been renamed toReprMixin
.RepresentationHelper
has been renamed toReprHelper
.PrettyRepresentationHelper
has been renamed toPrettyReprHelper
.
ReprMixinBase
is available if user does not want to inherit__getstate__
and__setstate__
fromReprMixin
.- Documentation about Pickle support for ReprMixin (#2)
These aliases will raise deprecation warnings:
RepresentationMixin
RepresentationHelper
PrettyRepresentationHelper
1.1.0 - 2015-04-16
- Add pickle support by instantiating
RepresentationMixin
in__setstate__
.
1.0.2 - 2015-04-06
- Improve control flow for class variable check, which could previously cause a bug if assertions were disabled.
1.0.1 - 2015-04-05
- Remove extra print statement (#1)
1.0 - 2015-03-28
- Only create class variables during first instantiation.