| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| Allowed defining any :ref:`__slots__ <slots>` for a class derived from | ||
| :class:`tuple` (including classes created by | ||
| :func:`collections.namedtuple`). |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| Expand Up | @@ -139,6 +139,7 @@ _PyCode_Quicken(_Py_CODEUNIT *instructions, Py_ssize_t size, int enable_counters | |
| #define SPEC_FAIL_ATTR_METACLASS_OVERRIDDEN 34 | ||
| #define SPEC_FAIL_ATTR_SPLIT_DICT 35 | ||
| #define SPEC_FAIL_ATTR_DESCR_NOT_DEFERRED 36 | ||
| #define SPEC_FAIL_ATTR_SLOT_AFTER_ITEMS 37 | ||
|
|
||
| /* Binary subscr and store subscr */ | ||
|
|
||
| Expand Down Expand Up | @@ -810,6 +811,10 @@ do_specialize_instance_load_attr(PyObject* owner, _Py_CODEUNIT* instr, PyObject* | |
| SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_EXPECTED_ERROR); | ||
| return -1; | ||
| } | ||
| if (dmem->flags & _Py_AFTER_ITEMS) { | ||
| SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_SLOT_AFTER_ITEMS); | ||
| return -1; | ||
| } | ||
|
Comment thread
Comment on lines
+816
to
+819
Copy link
Copy Markdown
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityThis looks OK but I don't know enough about the specializer to review properly.
Sorry, something went wrong.
All reactions
|
||
| if (dmem->flags & Py_AUDIT_READ) { | ||
| SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_AUDITED_SLOT); | ||
| return -1; | ||
| Expand Down Expand Up | @@ -1004,6 +1009,10 @@ _Py_Specialize_StoreAttr(_PyStackRef owner_st, _Py_CODEUNIT *instr, PyObject *na | |
| SPECIALIZATION_FAIL(STORE_ATTR, SPEC_FAIL_EXPECTED_ERROR); | ||
| goto fail; | ||
| } | ||
| if (dmem->flags & _Py_AFTER_ITEMS) { | ||
| SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_ATTR_SLOT_AFTER_ITEMS); | ||
| goto fail; | ||
| } | ||
| if (dmem->flags & Py_READONLY) { | ||
| SPECIALIZATION_FAIL(STORE_ATTR, SPEC_FAIL_ATTR_READ_ONLY); | ||
| goto fail; | ||
| Expand Down | ||
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.