-
Notifications
You must be signed in to change notification settings - Fork 802
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
release: 0.16.0 #2174
release: 0.16.0 #2174
Conversation
107d429
to
29b6d7a
Compare
29b6d7a
to
c216fd9
Compare
c216fd9
to
45798a7
Compare
Rebased one final time. I'll put this live tomorrow evening. I might rebase to include #2187 if that merges, however I also think it's fine if that lands as part of whatever release follows 0.16. |
I just switched a codebase to main and had a small snag: I was defining pymodules in Rust-submodules and got:
The problem being that the Is it worth writing a migration entry for this? |
Sorry for being a bit late but I thought about examples for the gc and buffer protocols and noticed a couple things that need fixing before 0.16
[dependencies]
pyo3 = {path = "../pyo3", default-features = false, features = ["macros"]} use pyo3::prelude::*;
use pyo3::PyTraverseError;
use pyo3::PyVisit;
#[pyclass]
struct Thing;
#[pymethods]
impl Thing {
fn __traverse__(&self, _visit: PyVisit) -> Result<(), PyTraverseError> {
Ok(())
}
fn __clear__(&mut self) {
}
} results in:
because the pyproto feature must be enabled for those imports.
|
Ah, thanks both. I've got a moment of calm this evening so I'll push a fix for these points shortly.
@mejrs can you elaborate on this point a little? We require the user to use |
A trait can be unsafe to implement and unsafe to call. For example stds So my question is, is the buffer protocol also like that? Fwiw I am fine with "the user has to type an unsafe keyword somewhere, that is enough and nothing needs to change". But for example we can have unsafe pymethod blocks... #[pymethods]
unsafe impl Foo {} ...if the macro removes the unsafe keyword from the tokenstream |
To clarify I am not saying that this needs to change, just that we might want to make a decision on it. |
👍 I think making a decision on any change there is probably too much just before the release. We can always reconsider and make tweaks for a future release.
that's a really interesting idea. I think that while (EDIT fat fingers sent early!) |
45798a7
to
2570db1
Compare
Rebased to pick up #2192, this is now the version I expect to put live this evening. |
2570db1
to
4c434a2
Compare
Release is live 🎉 |
Release branch for 0.16.0 release.
There's a couple PRs which I'd like to let merge (and rebase on) before this goes live:
Hopefully we can have this ready to go live around the weekend at the end of the month (26th./ 27th Feb).