Skip to content
Discussion options

You must be logged in to vote

Great question. I have come to the same preference as you that using .py() to get it is tidier (and works in functions that aren't #[pyfunction] or #[pymethods], so is more universally applicable.

I've just opened #4274 to switch the order.

Indeed both of the first two options are zero-cost, so I've also added that as a clarification.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Michael-J-Ward
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants