Skip to content

Commit

Permalink
Merge pull request #974 from kngwyu/doc-comment-for-py
Browse files Browse the repository at this point in the history
Revert soft-duplicated for Py::new
  • Loading branch information
kngwyu authored Jun 13, 2020
2 parents bbdca6b + 1dc77d5 commit f2f0ccd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ unsafe impl<T> Sync for Py<T> {}
impl<T> Py<T> {
/// Create a new instance `Py<T>`.
///
/// This method is **soft-duplicated** since PyO3 0.9.0.
/// Use [`PyCell::new`](../pycell/struct.PyCell.html#method.new) and
/// `Py::from` instead.
/// You can crate [`PyCell::new`](../pycell/struct.PyCell.html#method.new) and `Py::from`,
/// but this method can be more efficient.
pub fn new(py: Python, value: impl Into<PyClassInitializer<T>>) -> PyResult<Py<T>>
where
T: PyClass,
Expand Down

0 comments on commit f2f0ccd

Please sign in to comment.