| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…d to default function
| } | ||
| } | ||
| newobj = PyObject_CallFunctionObjArgs(s->defaultfn, obj, NULL); | ||
| if (obj != NULL && newobj != NULL && newobj->ob_type == obj->ob_type) { |
There was a problem hiding this comment.
How about if (PyObject_IsInstance(newobj, (PyObject *) Py_TYPE(obj))) { ?
Also, I think this can put above the check of if (newobj == NULL)
Sorry, something went wrong.
There was a problem hiding this comment.
Wouldn't PyObject_IsInstance raise false positives for our condition? For this fix, we would want the exact types to match, isn't it?
Sorry, something went wrong.
…d to default function
There was a problem hiding this comment.
I'm not sure this is the right solution. Here are just style comments.
Sorry, something went wrong.
…d to default function
|
Ignore the identation changes please, its still not aligned. |
Sorry, something went wrong.
…d to default function
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
|
I was not able to modify the original PR, so I created a new one: #113458. |
Sorry, something went wrong.
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Please review.
https://bugs.python.org/issue30732
#74917