Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attrs versions available: 18.1.0 #111

Closed
dependencies bot opened this issue May 4, 2018 · 0 comments · Fixed by #108
Closed

attrs versions available: 18.1.0 #111

dependencies bot opened this issue May 4, 2018 · 0 comments · Fixed by #108

Comments

@dependencies
Copy link

dependencies bot commented May 4, 2018

There are new versions of attrs available from pypi.

18.1.0

Changes

  • x=X(); x.cycle = x; repr(x) will no longer raise a
    RecursionError, and will instead show as X(x=...).

    #95

  • attr.ib(factory=f) is now syntactic sugar for the common case of
    attr.ib(default=attr.Factory(f)).

    #178,
    #356

  • Added attr.field_dict() to return an ordered dictionary of attrs
    attributes for a class, whose keys are the attribute names.

    #290,
    #349

  • The order of attributes that are passed into attr.make_class() or
    the these argument of @attr.s() is now retained if the
    dictionary is ordered (i.e. dict on Python 3.6 and later,
    collections.OrderedDict otherwise).

    Before, the order was always determined by the order in which the
    attributes have been defined which may not be desirable when
    creating classes programatically.

    #300,
    #339,
    #343

  • In slotted classes, __getstate__ and __setstate__ now ignore the
    __weakref__ attribute.

    #311,
    #326

  • Setting the cell type is now completely best effort. This fixes
    attrs on Jython.

    We cannot make any guarantees regarding Jython though, because our
    test suite cannot run due to dependency incompatabilities.

    #321,
    #334

  • If attr.s is passed a these argument, it will not attempt to
    remove attributes with the same name from the class body anymore.

    #322,
    #323

  • The hash of attr.NOTHING is now vegan and faster on 32bit Python
    builds.

    #331,
    #332

  • The overhead of instantiating frozen dict classes is virtually
    eliminated.
    #336

  • Generated __init__ methods now have an __annotations__ attribute
    derived from the types of the fields.

    #363

  • We have restructured the documentation a bit to account for
    attrs' growth in scope. Instead of putting everything into the
    examples page, we
    have started to extract narrative chapters.

    So far, we've added chapters on
    initialization and
    hashing.

    Expect more to come!

    #369,
    #370

Full changelog.

Credits

attrs is written and maintained by Hynek
Schlawack
.

The development is kindly supported by Variomedia
AG
.

A full list of contributors can be found in GitHub's
overview
.

It's the spiritual successor of
characteristic and aspires to
fix some of it clunkiness and unfortunate decisions. Both were inspired
by Twisted's
FancyEqMixin
but both are implemented using class decorators because sub-classing is
bad for you
, m'kay?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants