pyo3/src
Daniel Grunwald 62a083e38f PyTuple: Add back iter() method (fixes build); require py: Python for as_slice().
This is a compromise solution: we require the GIL to be held when acquiring
the slice, but not later when using the slice.

We could bind the lifetime of the returned slice to the Python-token lifetime
to prevent accessing the slice when the GIL is not held, but that causes
problems with the FromPyObject impl.

Alternatively we could not require the GIL at all when accessing the PyTuple
(and thus keep the ops::Index and IntoIterator implementations), but that
relies on too many CPython implementation details for my taste.
2016-12-17 16:40:17 +01:00
..
objects PyTuple: Add back iter() method (fixes build); require py: Python for as_slice(). 2016-12-17 16:40:17 +01:00
py_class Remove hacks for compatibility with old rust versions. The new minimum required version is Rust 1.13.0. 2016-12-17 16:05:21 +01:00
argparse.rs
conversion.rs
err.rs
function.rs Remove hacks for compatibility with old rust versions. The new minimum required version is Rust 1.13.0. 2016-12-17 16:05:21 +01:00
lib.rs Remove hacks for compatibility with old rust versions. The new minimum required version is Rust 1.13.0. 2016-12-17 16:05:21 +01:00
objectprotocol.rs
python.rs Remove hacks for compatibility with old rust versions. The new minimum required version is Rust 1.13.0. 2016-12-17 16:05:21 +01:00
pythonrun.rs