ugly _bound
suffixes methods everywhere
#4089
jimy-byerley
started this conversation in
General
Replies: 1 comment 2 replies
-
The goal is to replace all The https://pyo3.rs/v0.21.2/migration#from-020-to-021 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone
I wanted to ask what are these
_bound
methods everywhere in pyo3 0.21 ?!I can understand the desire to make a dedicated struct for bound references, but yet it is redundant with
&'py
references and duplicates the whole API. Actually there is now 3 types of references to the same python objectPy<T>
,&'py T
,Bound<'py, T>
.Are we supposed to replace all our pyo3 user code with only functions suffixed by
_bound
? this is quite ugly and verbose.Why not simply replacing all
&'py T
byBound<'py, T>
in previous existing API ?Why not keeping
&'py T
?Beta Was this translation helpful? Give feedback.
All reactions