Skip to content

Commit

Permalink
Merge pull request #3445 from davidhewitt/py2-internals
Browse files Browse the repository at this point in the history
add `Py2` as an internal API for optimization and dogfooding
  • Loading branch information
davidhewitt authored Oct 13, 2023
2 parents 642b335 + cac95f3 commit db13a97
Show file tree
Hide file tree
Showing 8 changed files with 1,733 additions and 341 deletions.
368 changes: 301 additions & 67 deletions src/instance.rs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,9 @@ pub use crate::type_object::PyTypeInfo;
pub use crate::types::PyAny;
pub use crate::version::PythonVersionInfo;

// Expected to become public API in 0.21 under a different name
pub(crate) use crate::instance::Py2;

/// Old module which contained some implementation details of the `#[pyproto]` module.
///
/// Prefer using the same content from `pyo3::pyclass`, e.g. `use pyo3::pyclass::CompareOp` instead
Expand Down
4 changes: 4 additions & 0 deletions src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ pub use pyo3_macros::{pyclass, pyfunction, pymethods, pymodule, FromPyObject};

#[cfg(feature = "macros")]
pub use crate::wrap_pyfunction;

// Expected to become public API in 0.21
// pub(crate) use crate::instance::Py2; // Will be stabilized with a different name
// pub(crate) use crate::types::any::PyAnyMethods;
Loading

0 comments on commit db13a97

Please sign in to comment.