mirror of
https://github.com/vinta/awesome-python.git
synced 2026-03-25 12:31:18 -05:00
[PR #875] [MERGED] Add attrs #785
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/vinta/awesome-python/pull/875
Author: @jwodder
Created: 4/15/2017
Status: ✅ Merged
Merged: 9/15/2017
Merged by: @vinta
Base:
master← Head:attrs📝 Commits (1)
b1145c8attrs is awesome.📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
README.md(+1 -0)📄 Description
What is this Python project?
attrsallows you to declare your class's instance attributes once, and it then takes care of generating the boilerplate__init__,__eq__,__repr__, etc. methods for you, turning this:into this:
Example taken from this blog post extolling the virtues of
attrswritten by the author of Twisted.What's the difference between this Python project and similar ones?
The only other project like this that I'm aware of is
characteristic, which the author abandoned to createattrsinstead.--
Anyone who agrees with this pull request could vote for it by adding a 👍 to it, and usually, the maintainer will merge it when votes reach 20.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.