| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Uses code from: python#16078 Co-authored-by: Marcel Plch <gmarcel.plch@gmail.com> Co-authored-by: Eddie Elizondo <eduardo.elizondorueda@gmail.com> Co-authored-by: Hai Shi <shihai1992@gmail.com>
| assert(PyType_Check(type)); | ||
| assert(type->tp_mro); | ||
| int i; | ||
| for (i = 0; i < PyTuple_GET_SIZE(type->tp_mro); i++) { |
There was a problem hiding this comment.
I think it's better to call PyTuple_GET_SIZE before the for loop to only call it once.
Sorry, something went wrong.
There was a problem hiding this comment.
It's a macro for direct field access, so it doesn't really matter.
Sorry, something went wrong.
|
Apologies for the mass review requests. I'll open a new PR. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This PR depends on #22835 and shows how the new _PyType_GetModuleByDef can be used. I would love these to go in as two separate commits.
https://bugs.python.org/issue1635741