62a083e38f
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. |
||
---|---|---|
.. | ||
boolobject.rs | ||
dict.rs | ||
exc.rs | ||
iterator.rs | ||
list.rs | ||
mod.rs | ||
module.rs | ||
num.rs | ||
object.rs | ||
oldstyle.rs | ||
sequence.rs | ||
string.rs | ||
tests.rs | ||
tuple.rs | ||
typeobject.rs |