Commit graph

949 commits

Author SHA1 Message Date
Yuji Kanagawa 0eb4eb4e58 Merge branch 'master' into property-fixes 2020-02-10 15:13:19 +09:00
David Hewitt de9698e7a5 Changes from PR#760 2020-02-09 11:06:44 +00:00
David Hewitt 20c6c2d463 Fix clippy warnings 2020-02-08 19:25:52 +00:00
kngwyu ba20b0ef21 Remove unnecessary parentheses from FFI 2020-02-08 14:27:59 +09:00
kngwyu 50de21abb7 Use AtomicBool for lazy types 2020-02-08 14:03:57 +09:00
David Hewitt f8c8b8effd Fix for PyObject with #[pyo3(get)] 2020-02-07 19:31:13 +00:00
kngwyu 58a0841ff7 Rewrite LazyTypeObjects without once_cell 2020-02-07 00:10:27 +09:00
kngwyu f8de335b00 Make PyTypeInfo::type_object return &'static instead of NonNull 2020-02-06 19:11:59 +09:00
Yuji Kanagawa 14980d742d
Merge pull request #755 from davidhewitt/property-doc
Fix docstrings generated by `[pyo3(get, set)]`
2020-02-03 18:14:54 +09:00
Yuji Kanagawa 8fea23a0b8
Merge pull request #751 from davidhewitt/remove-static-mut
Remove static mut from PyTypeInfo implementation
2020-02-03 17:39:25 +09:00
David Hewitt dfb7d7c58d Fix docstrings generated by [pyo3(get, set)] 2020-02-03 08:01:30 +00:00
David Hewitt 04f30c5971 Revisions from PR#751 2020-02-03 07:34:42 +00:00
kngwyu b88fe39ed6 Implement From<&PyNativeType> for Py 2020-02-02 15:28:44 +09:00
David Hewitt 7531b9fb07 Remove even more uses of static mut 2020-01-30 13:24:55 +00:00
David Hewitt 5cbdef6471 Remove static mut from PyTypeInfo implementation 2020-01-30 00:14:27 +00:00
kngwyu d1f28e9089 Separate FromPyObjectImpl from pyobject_native_type_convert! 2020-01-29 18:12:16 +09:00
David Hewitt d536974208 Remove unneeded brackets 2020-01-27 08:33:40 +00:00
Yuji Kanagawa 541816b7d2
Merge pull request #730 from davidhewitt/extract-clone
FromPyObject for #[pyclass] with T: Clone
2020-01-25 12:42:05 +09:00
David Hewitt fdf407e045 FromPyObject for #[pyclass] with T: Clone 2020-01-24 08:57:28 +00:00
David Hewitt 43df3299ab Remove PyNoArgsFunction 2020-01-22 16:27:36 +00:00
Yuji Kanagawa 4fe1841c5f
Merge branch 'master' into v0.9.0 2020-01-17 14:27:02 +09:00
Yuji Kanagawa db6c822fa2
Merge pull request #734 from ijl/rm-spin
Use parking_lot::Mutex instead of spin::Mutex
2020-01-17 14:24:54 +09:00
ijl 23d380ef07 _Py_HashBytes() 2020-01-16 14:04:25 +00:00
ijl a55a48b189 _PyDict_SetItem_KnownHash() 2020-01-16 14:04:17 +00:00
ijl 4b2f4b3a15 Use parking_lot::Mutex instead of spin::Mutex
spin is no longer maintained.

Fixes #718.
2020-01-16 13:53:54 +00:00
kngwyu 56f68a55cd Bump version to 0.9.0-alpha.1 2020-01-16 20:05:44 +09:00
David Hewitt f45eaa00b5 Remove dead code 2020-01-13 23:26:45 +00:00
Alexander Niederbühl a126f5d0ab Fix typo in panic message 2020-01-12 14:33:20 +01:00
kngwyu 302b3bb088 Merge branch 'master' into pyclass-new-layout 2020-01-11 15:03:25 +09:00
Alexander Niederbühl 1f675dcaa7 Clear error indicator when the exception is handled on the Rust side
Leaving Python's global exception state is misleading, e.g. subsequent
calls of `py.eval` will fail.
2020-01-11 00:44:11 +01:00
kngwyu ea9824a982 Fix document for PyList::iter 2020-01-08 23:44:16 +09:00
kngwyu 7b502821ce Use &PyAny instead of PyObject in PyDictIterator 2020-01-08 23:43:40 +09:00
kngwyu 026caeda68 Implement iter for PySet and PyFrozenSet 2020-01-08 23:15:53 +09:00
kngwyu c57177a169 Refine tests and documents around pyclass.rs 2020-01-08 22:44:50 +09:00
David Hewitt f7a4fbaa38 Use _PySet_NextEntry 2020-01-08 09:43:03 +00:00
kngwyu 451de182cb Merge branch 'master' into pyclass-new-layout 2020-01-08 17:16:33 +09:00
David Hewitt ec79285fe4 Implement IntoIterator for PySet and PyFrozenSet 2020-01-08 00:07:11 +00:00
David Hewitt 72e9abd4c7 Remove specialization from IntoPy implementation 2020-01-07 09:32:34 +00:00
David Hewitt bf507da154 Remove specialization from FromPyObject blanket impls 2020-01-07 09:01:35 +00:00
kngwyu ab0a731e5e Fix use order in prelude 2020-01-07 17:38:20 +09:00
kngwyu 67a98d6c4a Remove unnecessary Box 2020-01-07 17:37:29 +09:00
kngwyu f26e07cfd6 Replace IntoInitializer<T> with Into<PyClassInitializer<T>> 2020-01-07 13:08:41 +09:00
kngwyu b602b4bf6c Enhance documentation and tests around #[new] 2020-01-07 12:49:36 +09:00
David Hewitt 60edeb889e Simplify IntoInitializer 2020-01-06 13:19:58 +00:00
kngwyu d22b03edde Bump version to 0.8.5 2020-01-05 16:39:18 +09:00
kngwyu 18e565fab5 New PyClassInitializer 2020-01-05 16:01:05 +09:00
kngwyu 8f8785d7c2 Merge branch 'master' into pyclass-new-layout 2019-12-29 23:51:51 +09:00
kngwyu 766a520a10 Documentation enhancement 2019-12-29 00:02:48 +09:00
Alexander Niederbühl 3fae391a3c Ignore missing # Safety section in ffi module 2019-12-28 03:54:41 +01:00
Guillaume Desmottes 6f202efa59 dict: implement FromPyObject for BTreeMap 2019-12-24 18:53:19 +05:30