| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Also moved an auto variable that got consted into its innermost necessary scope.
| static PyTypeObject *best_base(PyObject *); | ||
| static int mro_internal(PyTypeObject *, PyObject **); | ||
| static int type_is_subtype_base_chain(PyTypeObject *, PyTypeObject *); | ||
| static int type_is_subtype_base_chain(const PyTypeObject *, const PyTypeObject *); |
There was a problem hiding this comment.
Please do not add const to PyObject pointers (and PyTypeObject is a subtype of PyObject). They are inherently mutable. If the particular function does not mutate them in the particular Python version, it is just an implementation detail.
Sorry, something went wrong.
There was a problem hiding this comment.
Will do. I know we've discussed before, but this was an old branch. Sorry. I'll resubmit.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Also moved an auto variable that got consted into its innermost
necessary scope.
Note that this is the same type of patch as #19185, but in a different source file. If it's easier for the folks that go through these patches to have similar changes to multiple source files put together in one PR, let me know and I'll do that going forward.
https://bugs.python.org/issue39943