Skip to content

Commit

Permalink
pytuple: deprecate split_from
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Aug 17, 2021
1 parent df41903 commit 7fd70d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Changed

- Change `PyErr::fetch()` to return `Option<PyErr>`. [#1717](https://github.com/PyO3/pyo3/pull/1717)
- Deprecate `PyTuple::split_from`. [#1804](https://github.com/PyO3/pyo3/pull/1804)

### Fixed

Expand Down
1 change: 1 addition & 0 deletions src/types/tuple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ impl PyTuple {
}
}

#[deprecated(since = "0.15.0", note = "use tuple.slice(low, tuple.len()) instead")]
/// Takes a slice of the tuple from `low` to the end and returns it as a new tuple.
pub fn split_from(&self, low: usize) -> &PyTuple {
unsafe {
Expand Down

0 comments on commit 7fd70d1

Please sign in to comment.