pyo3/src/objects
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
..
boolobject.rs #40: split ExtractPyObject into two traits: 2016-05-08 21:25:09 +02:00
dict.rs Add back PyIterator, PyListIterator etc. 2015-10-29 02:36:50 +01:00
exc.rs On Python 2.7, PyString now corresponds to `basestring` instead of `str`. 2016-05-05 07:26:52 +02:00
iterator.rs Add back PyIterator, PyListIterator etc. 2015-10-29 02:36:50 +01:00
list.rs #40: split ExtractPyObject into two traits: 2016-05-08 21:25:09 +02:00
mod.rs Add py_exception! macro for defining custom exception types 2016-06-05 18:12:25 -04:00
module.rs Remove rustobject (PyRustObject, TypeBuilder). 2016-03-09 01:07:50 +01:00
num.rs Mention to_py_object() and extract() in PyInt method documentation. 2016-11-13 11:14:13 +01:00
object.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
oldstyle.rs Put Python argument at beginning of argument list. 2015-10-26 23:52:18 +01:00
sequence.rs Some documentation updates 2016-03-05 17:41:04 +01:00
string.rs #40: split ExtractPyObject into two traits: 2016-05-08 21:25:09 +02:00
tests.rs Put Python argument at beginning of argument list. 2015-10-26 23:52:18 +01:00
tuple.rs PyTuple: Add back iter() method (fixes build); require py: Python for as_slice(). 2016-12-17 16:40:17 +01:00
typeobject.rs TypeBuilder: take &mut self instead of by-value self 2016-03-06 10:29:28 +01:00