-
Notifications
You must be signed in to change notification settings - Fork 796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Guide docs for all protocol methods #1032
Comments
Please note for anyone who looks at this that the |
After |
I volunteer for that. |
I'm leaning towards this:
|
Sounds good to me. There is extensive material on the Python side on how these protocols work, and we should mainly state what we support and what the Rust/PyO3-specific snags are. |
We now have https://pyo3.rs/v0.20.0/class/protocols, plus some more detailed examples by @mejrs and @birkenfeld for specific protocols. I'm going to close this one as resolved, though of course more documentation improvements are always possible! |
Just thinking that for the guide it would be nice to add a table to the
#[pyproto]
section listing all the dunder methods that can be implemented and the protocols they are a part of (e.g.__int__
->PyNumberProtocol
etc.)The text was updated successfully, but these errors were encountered: