Skip to content

Rename sequence .list() and .tuple() to .to_list() and .to_tuple()#3111

Merged
bors[bot] merged 1 commit intoPyO3:mainfrom
davidhewitt:to_conversions
Apr 19, 2023
Merged

Rename sequence .list() and .tuple() to .to_list() and .to_tuple()#3111
bors[bot] merged 1 commit intoPyO3:mainfrom
davidhewitt:to_conversions

Conversation

@davidhewitt
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

bors bot commented Apr 19, 2023

Timed out.

@messense
Copy link
Copy Markdown
Member

bors retry

@bors
Copy link
Copy Markdown
Contributor

bors bot commented Apr 19, 2023

Build succeeded:

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

3 participants