Skip to content

objstr::get_value -> objstr::clone_value#1654

Merged
coolreader18 merged 1 commit intoRustPython:masterfrom
youknowone:clone-value
Jan 9, 2020
Merged

objstr::get_value -> objstr::clone_value#1654
coolreader18 merged 1 commit intoRustPython:masterfrom
youknowone:clone-value

Conversation

@youknowone
Copy link
Member

because the previous naming gives unclear performance estimation to
users especially comparing to objstr::borrow_value.

I also suggest one of below:

  1. Rename objstr::borrow_value -> objstr::get_value as current expectation.
  2. Rename get_values of non-copying types into borrow_value and clone_value. For now, there are bytes, int, range and tuple.

because the previous naming gives unclear performance estimation to
users especially comparing to objstr::borrow_value
@coolreader18 coolreader18 merged commit 156e6e1 into RustPython:master Jan 9, 2020
@youknowone youknowone deleted the clone-value branch January 9, 2020 00:25
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.

2 participants