You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just thinking it might be worth adding a table to the guide (class.md?) which talks about the different choices for taking #[pyclass] values as arguments.
Currently there's MyClass, &MyClass, &self, &mut self, PyRef<MyClass>, PyRefMut<MyClass>, and &PyCell<MyClass>.
All have moments when you might want them, but it would help users if this was documented better!
The text was updated successfully, but these errors were encountered:
Just thinking it might be worth adding a table to the guide (
class.md
?) which talks about the different choices for taking#[pyclass]
values as arguments.Currently there's
MyClass
,&MyClass
,&self
,&mut self
,PyRef<MyClass>
,PyRefMut<MyClass>
, and&PyCell<MyClass>
.All have moments when you might want them, but it would help users if this was documented better!
The text was updated successfully, but these errors were encountered: