Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
GH-118095: Use broader specializations in tier 1, for better tier 2 support of calls.#118322
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
0b157ab2262f984af43c2b7795e3e5c7dce61abb3bb49bc86f42519d32946321a2dcfe62ff43c71c6d410b4077302cdf2f1831eb37819b1c857d152839d16e1d5c0a7File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -107,7 +107,7 @@ static void | ||
| dump_stack(_PyInterpreterFrame *frame, PyObject **stack_pointer) | ||
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. Are the changes in this function intentional, or left over from debugging? MemberAuthor 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. Left over from debugging, I needed them as It might be worth making this change, but that's for another PR. | ||
| { | ||
| PyObject **stack_base = _PyFrame_Stackbase(frame); | ||
| PyObject *exc = PyErr_GetRaisedException(); | ||
| printf(" stack=["); | ||
| for (PyObject **ptr = stack_base; ptr < stack_pointer; ptr++) { | ||
| if (ptr != stack_base) { | ||
| @@ -117,12 +117,24 @@ dump_stack(_PyInterpreterFrame *frame, PyObject **stack_pointer) | ||
| printf("<nil>"); | ||
| continue; | ||
| } | ||
| if ( | ||
| *ptr == Py_None | ||
| || PyBool_Check(*ptr) | ||
| || PyLong_CheckExact(*ptr) | ||
| || PyFloat_CheckExact(*ptr) | ||
| || PyUnicode_CheckExact(*ptr) | ||
| ) { | ||
| if (PyObject_Print(*ptr, stdout, 0) == 0) { | ||
| continue; | ||
| } | ||
| PyErr_Clear(); | ||
| } | ||
| // Don't call __repr__(), it might recurse into the interpreter. | ||
| printf("<%s at %p>", Py_TYPE(*ptr)->tp_name, (void *)(*ptr)); | ||
| } | ||
| printf("]\n"); | ||
| fflush(stdout); | ||
| PyErr_SetRaisedException(exc); | ||
| } | ||
| static void | ||