Skip to content
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

arbitrary_self_types approaching stabilisation, interaction with PyAnyMethods etc #4869

Open
davidhewitt opened this issue Jan 23, 2025 · 2 comments

Comments

@davidhewitt
Copy link
Member

We built the PyAnyMethods traits with the assumption that we might be able to use arbitrary_self_types as an off-ramp in the future. The traits seem to have been adopted well though it would be nice to remove them again for simplicity if possible.

The latest iteration of arbitrary_self_types is now feature complete on nightly and looks like there might be a stabilisation report soon: rust-lang/rust#44874 (comment)

Has anyone got some time / energy to experiment with this for our potential use in PyO3? As well as in PyAnyMethods, it might be useful in PyRef<MyClass> / Bound<MyClass> etc. for #[pymethods] receivers.

I would love to try, but I am experiencing a drought of time which is probably lasting until March 😢

cc @adetaylor

@adetaylor
Copy link

@LilyFoote
Copy link
Contributor

I'll take a look at this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants