There was a problem hiding this comment.
Does PyTuple_GET_ITEM guarantee its result is an lvalue? That's not in the public API anywhere.
PySequence_Fast_ITEMS(args)[0] would be conforming to the public API, and I think just as fast
There was a problem hiding this comment.
I fixed it, PySequence_Fast_ITEMS() seems to be slower as it checks for type.
4a0bca9 to
f491abf
Compare
|
@methane, was there any blocker on merging this? Thanks! |
@rhettinger would you review this? |
https://bugs.python.org/issue34303