forked from facebookarchive/skybison
-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Get simple setuptools setup.py working #524
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Subclasses in the wild write `@property` functions that shadow the attributes. Since they are getter only, the builtin attribute setting fails with an `AttributeError`: ``` ====================================================================== ERROR: test_set_path_attr_on_import_error_subclass_with_property_sets_attr (__main__.ExceptionTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "library/builtins_test.py", line 4968, in test_set_path_attr_on_import_error_subclass_with_property_sets_attr c = C("a path") File "library/builtins.py", line 1037, in __init__ self.path = path AttributeError: can't set attribute ``` If we use `_instance_setattr`, this works. This may be a more general problem since CPython does all this stuff in C and our builtins are all in Python, but I am not sure how to approach that yet.
This comment has been minimized.
This comment has been minimized.
This signature should be more like `dict.update`. This is also needed for setuptools.
{
"django_minimal_requests": {
"benchmark": "django_minimal_requests",
"cg_instructions before": 682929,
"cg_instructions now": 682539,
"cg_instructions ∆": "-0.1%",
"interpreter_args": [],
"interpreter_name": "pyro",
"version before": "cd9b613ea5d1d9e396dfa7b3fb1a2c6405ce5550",
"version now": "8bf16353b4a977a88d2504d9c38c1c26fc323e9c"
}
}
|
Summary
Benchmark detailsBase vs. New
CPython vs New
Base
New
CPython
|
Summary
Benchmark detailsBase vs. New
CPython vs New
Base
New
CPython
|
Not sure how to make this an automated test... Ah well. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Woooo! Let's go!