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

Rename Py<T> to PyDetached<T> #3655

Closed
wants to merge 1 commit into from
Closed

Conversation

davidhewitt
Copy link
Member

@davidhewitt davidhewitt commented Dec 15, 2023

To make space for my preferred name of Py<'py, T> for the new API in #3382, this PR proposes renaming Py<T> to PyDetached<T>. (Other ideas are PySend<T> and PyUngil<T>.)

Benefit of opening a PR is so we can see how painful it looks to do this rename. (And maybe so that internally we can stop writing Py2<...> everywhere.)

I'm split on whether it makes sense to land this rename in 0.21 and then the new Py<'py, T> in 0.22, or land both at the same time.

@davidhewitt davidhewitt changed the title Rename Py<T> to PyDetached<T>. Rename Py<T> to PyDetached<T> Dec 15, 2023
@davidhewitt
Copy link
Member Author

I think from staring at the diff, this is enough of an ergonomics hit that we should not do this until we're ready to make the new API public.

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

Successfully merging this pull request may close these issues.

1 participant