Add entry to `CHANGELOG.md` and fix typo
This commit is contained in:
parent
3b7e83fb7c
commit
2c82a03170
|
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||||
## Fixed
|
## Fixed
|
||||||
|
|
||||||
* `type_object::PyTypeObject` has been marked unsafe because breaking the contract `type_object::PyTypeObject::init_type` can lead to UB.
|
* `type_object::PyTypeObject` has been marked unsafe because breaking the contract `type_object::PyTypeObject::init_type` can lead to UB.
|
||||||
|
* Fixed automatic derive of `PySequenceProtocol` implementation in [#423](https://github.com/PyO3/pyo3/pull/423).
|
||||||
|
|
||||||
## [0.6.0] - 2018-03-28
|
## [0.6.0] - 2018-03-28
|
||||||
|
|
||||||
|
@ -66,7 +67,7 @@ default = ["extension-module"]
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
* A soudness hole where every instances of a `#[pyclass]` struct was considered to be part of a python object, even though you can create instances that are not part of the python heap. This was fixed through `PyRef` and `PyRefMut`.
|
* A soudness hole where every instances of a `#[pyclass]` struct was considered to be part of a python object, even though you can create instances that are not part of the python heap. This was fixed through `PyRef` and `PyRefMut`.
|
||||||
* Fix kwargs support in [#328](https://github.com/PyO3/pyo3/pull/328).
|
* Fix kwargs support in [#328](https://github.com/PyO3/pyo3/pull/328).
|
||||||
* Add full support for `__dict__` in [#403](https://github.com/PyO3/pyo3/pull/403).
|
* Add full support for `__dict__` in [#403](https://github.com/PyO3/pyo3/pull/403).
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ use crate::Python;
|
||||||
use crate::{FromPyObject, IntoPyObject};
|
use crate::{FromPyObject, IntoPyObject};
|
||||||
use std::os::raw::c_int;
|
use std::os::raw::c_int;
|
||||||
|
|
||||||
/// Sequece interface
|
/// Sequence interface
|
||||||
#[allow(unused_variables)]
|
#[allow(unused_variables)]
|
||||||
pub trait PySequenceProtocol<'p>: PyTypeInfo + Sized {
|
pub trait PySequenceProtocol<'p>: PyTypeInfo + Sized {
|
||||||
fn __len__(&'p self) -> Self::Result
|
fn __len__(&'p self) -> Self::Result
|
||||||
|
|
Loading…
Reference in New Issue