Skip to content

Commit 7fd70d1

Browse files
committed
pytuple: deprecate split_from
1 parent df41903 commit 7fd70d1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1111
### Changed
1212

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

1516
### Fixed
1617

src/types/tuple.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ impl PyTuple {
7272
}
7373
}
7474

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

0 commit comments

Comments
 (0)