Recommended priority for Obtaining a Python Token: style or substance #4262
-
I see the recommend priority for ways to acquire a Is this recommended priority strictly a convention (style) issue? Or are there correctness / performance implications between the choices?
In particular, I'm asking because adding an extra |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Great question. I have come to the same preference as you that using 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. |
Beta Was this translation helpful? Give feedback.
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.