Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New #[pyclass] system that is aware of its concrete layout #683

Merged
merged 27 commits into from
Jan 11, 2020
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
4b5fa7e
Introduce PyClass trait and PyClassShell
kngwyu Dec 7, 2019
bdb66af
Make PyClassShell have dict&weakref
kngwyu Dec 8, 2019
4d7dfaf
Allow slf: &PyClassShell<Self>
kngwyu Dec 8, 2019
a663907
Introduce PyInternalCaster
kngwyu Dec 14, 2019
b86de93
Introduce PyClassInitializer
kngwyu Dec 15, 2019
8175d6f
Merge branch 'master' into pyclass-new-layout
kngwyu Dec 19, 2019
6b84401
Make it enable to safely inherit native types
kngwyu Dec 21, 2019
efa16a6
Fix documents accompanied by PyClassShell
kngwyu Dec 22, 2019
e2dc843
Fix a corner case for PyClassInitializer
kngwyu Dec 22, 2019
acb1120
Fix examples with the new #[new] API
kngwyu Dec 22, 2019
d5cff05
Fix documents and a clippy warning
kngwyu Dec 22, 2019
ea51756
Resolve some clippy complains
kngwyu Dec 23, 2019
2e3ece8
Try to enhance class section in the guide
kngwyu Dec 23, 2019
5859039
Fix accidently changed file permission
kngwyu Dec 24, 2019
766a520
Documentation enhancement
kngwyu Dec 28, 2019
8f8785d
Merge branch 'master' into pyclass-new-layout
kngwyu Dec 29, 2019
18e565f
New PyClassInitializer
kngwyu Jan 5, 2020
60edeb8
Simplify IntoInitializer
davidhewitt Jan 6, 2020
b04d0af
Merge pull request #1 from davidhewitt/pyclass-new-layout
kngwyu Jan 7, 2020
b602b4b
Enhance documentation and tests around #[new]
kngwyu Jan 7, 2020
f26e07c
Replace IntoInitializer<T> with Into<PyClassInitializer<T>>
kngwyu Jan 7, 2020
67a98d6
Remove unnecessary Box
kngwyu Jan 7, 2020
ab0a731
Fix use order in prelude
kngwyu Jan 7, 2020
451de18
Merge branch 'master' into pyclass-new-layout
kngwyu Jan 8, 2020
c57177a
Refine tests and documents around pyclass.rs
kngwyu Jan 8, 2020
302b3bb
Merge branch 'master' into pyclass-new-layout
kngwyu Jan 11, 2020
439efbb
Update CHANGELOG
kngwyu Jan 11, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix use order in prelude
  • Loading branch information
kngwyu committed Jan 7, 2020
commit ab0a731e5e96d034d735c551ecb607c391877598
2 changes: 1 addition & 1 deletion src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ pub use crate::gil::GILGuard;
pub use crate::instance::{AsPyRef, Py};
pub use crate::object::PyObject;
pub use crate::objectprotocol::ObjectProtocol;
pub use crate::pyclass_init::PyClassInitializer;
pub use crate::python::Python;
pub use crate::{FromPy, FromPyObject, IntoPy, IntoPyPointer, PyTryFrom, PyTryInto, ToPyObject};
// This is only part of the prelude because we need it for the pymodule function
pub use crate::pyclass_init::PyClassInitializer;
pub use crate::types::PyModule;
pub use pyo3cls::pymodule;
pub use pyo3cls::{pyclass, pyfunction, pymethods, pyproto};