
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
Rich comparison for attrs/dataclass classes? ยท Issue #3632 ยท pytest-dev/pytest
Description:
Sooo, since I just ran into it myself: when I assert over classes, I obviously get an error similar to X(1) != X(2). Which once you have more than a handful of attributes becomes unreadable. I usually use asdict temporarily and just do a...
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {๐}
- Education
- Technology & Computing
- News & Politics
Content Management System {๐}
What CMS is github.com built with?
Github.com is based on WORDPRESS.
Traffic Estimate {๐}
What is the average monthly size of github.com audience?
๐๐ Tremendous Traffic: 10M - 20M visitors per month
Based on our best estimate, this website will receive around 10,000,019 visitors per month in the current month.
However, some sources were not loaded, we suggest to reload the page to get complete results.
check SE Ranking
check Ahrefs
check Similarweb
check Ubersuggest
check Semrush
How Does Github.com Make Money? {๐ธ}
Subscription Packages {๐ณ}
We've located a dedicated page on github.com that might include details about subscription plans or recurring payments. We identified it based on the word pricing in one of its internal links. Below, you'll find additional estimates for its monthly recurring revenues.How Much Does Github.com Make? {๐ฐ}
Subscription Packages {๐ณ}
Prices on github.com are in US Dollars ($).
They range from $4.00/month to $21.00/month.
We estimate that the site has approximately 4,989,889 paying customers.
The estimated monthly recurring revenue (MRR) is $20,957,532.
The estimated annual recurring revenues (ARR) are $251,490,385.
Wordpress Themes and Plugins {๐จ}
What WordPress theme does this site use?
It is strange but we were not able to detect any theme on the page.
What WordPress plugins does this website use?
It is strange but we were not able to detect any plugins on the page.
Keywords {๐}
commented, ronnypfannschmidt, issue, attrs, hynek, member, type, classes, feature, contributor, api, alysivji, sign, comparison, dataclasses, class, mac, change, merged, features, branch, projects, rich, attributes, asdict, nice, equality, pytestbot, added, nicoddemus, support, navigation, pytest, code, issues, pull, requests, actions, security, attrsdataclass, assert, give, people, equal, test, implemented, fixtures, attribute, platform, platformspecific,
Topics {โ๏ธ}
alysivji edits member issue easy issue features branch type type projects initial iteration cold comment metadata assignees assigned labels good contributor type rich asserts projects milestone attrs/dataclass classes removed platform dict comparison code test class attribute features branch docs comparison asdict temporarily asdict doesn class fixtures class support equality test feature-branch error similar attrs classes detect inequality exists pluck sound interesting propagating fixtures api change pytest_assertrepr_compare hook as_dict output prior api support namedtuples filter tho important detail rough version assertion package milestone relationships attrs ourself nice diff nice addition equality checking issue equal types confident people implemented similarly desired ^^ _pytest directory
Payment Methods {๐}
- Braintree
Questions {โ}
- Already have an account?
- Does that sound interesting for you at all?
- Rich comparison for attrs/dataclass classes?
- Assertion package?
Schema {๐บ๏ธ}
DiscussionForumPosting:
context:https://schema.org
headline:Rich comparison for attrs/dataclass classes?
articleBody:Sooo, since I *just* ran into it myself: when I assert over classes, I obviously get an error similar to `X(1) != X(2)`. Which once you have more than a handful of attributes becomes unreadable.
I usually use asdict temporarily and just do a `assert attr.asdict(x) == attr.asdict(y)` which will give me a nice diff. I know that other people also already did some hacking on this.
Now with attrs classes (and the upcoming dataclasses), it wouldnโt be too hard to give us nice, rich asserts: Once you detect inequality, you โjustโ have to check for (equal types obviously, and then) `x.__attrs_attrs__`, and if it exists pluck out attributes that are used for equality from there and find out which are actually not equal.
And โจ, you can tell the user *exactly* which attributes failed the equality test. Does that sound interesting for you at all? Now that 3.7 is out, Iโm confident people will be interested in such a feature and IIRC, DCs and attrs are implemented similarly so both could/should be implemented at once.
author:
url:https://github.com/hynek
type:Person
name:hynek
datePublished:2018-06-28T13:45:25.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:12
url:https://github.com/3632/pytest/issues/3632
context:https://schema.org
headline:Rich comparison for attrs/dataclass classes?
articleBody:Sooo, since I *just* ran into it myself: when I assert over classes, I obviously get an error similar to `X(1) != X(2)`. Which once you have more than a handful of attributes becomes unreadable.
I usually use asdict temporarily and just do a `assert attr.asdict(x) == attr.asdict(y)` which will give me a nice diff. I know that other people also already did some hacking on this.
Now with attrs classes (and the upcoming dataclasses), it wouldnโt be too hard to give us nice, rich asserts: Once you detect inequality, you โjustโ have to check for (equal types obviously, and then) `x.__attrs_attrs__`, and if it exists pluck out attributes that are used for equality from there and find out which are actually not equal.
And โจ, you can tell the user *exactly* which attributes failed the equality test. Does that sound interesting for you at all? Now that 3.7 is out, Iโm confident people will be interested in such a feature and IIRC, DCs and attrs are implemented similarly so both could/should be implemented at once.
author:
url:https://github.com/hynek
type:Person
name:hynek
datePublished:2018-06-28T13:45:25.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:12
url:https://github.com/3632/pytest/issues/3632
Person:
url:https://github.com/hynek
name:hynek
url:https://github.com/hynek
name:hynek
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:12
interactionType:https://schema.org/CommentAction
userInteractionCount:12
External Links {๐}(5)
- What is the earnings of https://github.blog?
- How much revenue does https://gitmate.io bring in?
- https://docs.pytest.org/en/latest/reference.html#_pytest.hookspec.pytest_assertrepr_compare's total income per month
- Get to know https://docs.pytest.org/en/latest/writing_plugins.html's earnings
- How much does https://www.githubstatus.com/ rake in every month?
Analytics and Tracking {๐}
- Site Verification - Google
Libraries {๐}
- Clipboard.js
- D3.js
- Lodash
Emails and Hosting {โ๏ธ}
Mail Servers:
- aspmx.l.google.com
- alt1.aspmx.l.google.com
- alt2.aspmx.l.google.com
- alt3.aspmx.l.google.com
- alt4.aspmx.l.google.com
Name Servers:
- dns1.p08.nsone.net
- dns2.p08.nsone.net
- dns3.p08.nsone.net
- dns4.p08.nsone.net
- ns-1283.awsdns-32.org
- ns-1707.awsdns-21.co.uk
- ns-421.awsdns-52.com
- ns-520.awsdns-01.net