Merge pull request #1804 from davidhewitt/deprecate_split_from

pytuple: deprecate split_from
This commit is contained in:
David Hewitt 2021-08-17 15:00:21 +01:00 committed by GitHub
commit 7a92e2699b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,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

View File

@ -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 {