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 sequence .list() and .tuple() to .to_list() and .to_tuple() #3111

Merged
merged 1 commit into from Apr 19, 2023

Conversation

davidhewitt
Copy link
Member

As agreed in #3042 (comment).

The motivation is that it is an emerging Rust convention for to_x to mean "a non-consuming conversion to type x which has some (small) overhead". E.g. to_string, to_owned.

@adamreichold
Copy link
Member

bors r+

bors bot added a commit that referenced this pull request Apr 18, 2023
3111: Rename sequence `.list()` and `.tuple()` to `.to_list()` and `.to_tuple()` r=adamreichold a=davidhewitt

As agreed in #3042 (comment).

The motivation is that it is an emerging Rust convention for `to_x` to mean "a non-consuming conversion to type x which has some (small) overhead". E.g. `to_string`, `to_owned`.

Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
@bors
Copy link
Contributor

bors bot commented Apr 19, 2023

Timed out.

@messense
Copy link
Member

bors retry

@bors
Copy link
Contributor

bors bot commented Apr 19, 2023

Build succeeded:

@bors bors bot merged commit 7afab36 into PyO3:main Apr 19, 2023
33 checks passed
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.

None yet

3 participants