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

ENH: query attributes through private API to speed up validate. #29

Merged
merged 4 commits into from
Oct 16, 2015

Conversation

cournape
Copy link
Contributor

@cournape cournape commented Oct 6, 2015

Proposal fix for #28

the public API ``fields`` is at least one order of magnitude slower than
accessing the __attrs_attr__ field because of the deepcopy use in
``fields``.
@codecov-io
Copy link

Current coverage is 100.00%

Merging #29 into master will not affect coverage as of d1e18f5

@@            master     #29   diff @@
======================================
  Files            6       6       
  Stmts          310     310       
  Branches        71      71       
  Methods          0       0       
======================================
  Hit            310     310       
  Partial          0       0       
  Missed           0       0       

Review entire Coverage Diff as of d1e18f5

Powered by Codecov. Updated on successful CI builds.

@hynek
Copy link
Member

hynek commented Oct 6, 2015

Thanks!

So since the tests didn’t use to cover the error before (it came thru fields), the coverage sank.

But since the ValueError wasn’t documented before, but OTOH the docs explicitly ask for a decorated instance, I’m tending to not handle that special case at all.

@hynek
Copy link
Member

hynek commented Oct 7, 2015

you may want to use the delay I explained in the other ticket to add yourself to AUTHORS.rst and add the change to the changelog. Thanks!

@cournape
Copy link
Contributor Author

cournape commented Oct 9, 2015

I did, though it seems a bit of a steal given the trivial contribution :)

@hynek
Copy link
Member

hynek commented Oct 9, 2015

I have a simple “every change is sacred” policy. :) Also not the code alone counts but also the way there. A good bug report is +Inf times better than a half-assed patch.

That said, you forgot the changelog entry. :D (docs/changelog.rst)

@cournape
Copy link
Contributor Author

here we go. Hope you had a good time in Tokyo !

@hynek
Copy link
Member

hynek commented Oct 16, 2015

It was…intense. :)

Thanks!

hynek added a commit that referenced this pull request Oct 16, 2015
ENH: query attributes through private API to speed up validate.
@hynek hynek merged commit 140c8c9 into python-attrs:master Oct 16, 2015
@cournape
Copy link
Contributor Author

cournape commented Dec 8, 2015

@hynek is there something I can help w/ to make 15.2.0 happen ?

@hynek
Copy link
Member

hynek commented Dec 8, 2015

I’m doing some repo janitoring right now and will release afterwards.

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

Successfully merging this pull request may close these issues.

3 participants