Commit Graph

3786 Commits

Author SHA1 Message Date
Yuji Kanagawa 18440d7af5
Merge pull request #713 from davidhewitt/remove-specializations
Remove specialization from some blanket impls
2020-01-07 20:00:21 +09: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
Yuji Kanagawa b04d0af399
Merge pull request #1 from davidhewitt/pyclass-new-layout
Simplify IntoInitializer
2020-01-07 12:18:03 +09:00
David Hewitt 60edeb889e Simplify IntoInitializer 2020-01-06 13:19:58 +00:00
Yuji Kanagawa 7e591e310c
Merge pull request #711 from PyO3/v0.8.5
Bump version to 0.8.5
2020-01-05 18:57:41 +09: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
Yuji Kanagawa 6160cbfac9
Merge pull request #708 from lochbrunner/master
Fixes PyObjectDelAttrProtocol signature
2020-01-02 15:10:30 +09:00
Matthias Lochbrunner ff2aaea334 Fixes PyObjectDelAttrProtocol 2020-01-01 16:51:40 +01: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
Yuji Kanagawa 454c7f6eaa
Merge pull request #705 from Alexander-N/gh-actions
Trigger windows tests on pull requests
2019-12-28 21:40:51 +09:00
Alexander Niederbühl 1d5cc89deb Revert "Add Python 3.8 to github actions tests"
This reverts commit 5a3f903745.
2019-12-28 13:02:31 +01:00
Alexander Niederbühl 5c1cb34c4a gh-actions: Set max-parallel to 4 2019-12-28 12:45:45 +01:00
Alexander Niederbühl 5a3f903745 Add Python 3.8 to github actions tests 2019-12-28 12:37:47 +01:00
Alexander Niederbühl 2ce8a0b8b7 Trigger github action tests also on pull requests 2019-12-28 12:36:20 +01:00
Yuji Kanagawa b7f3e5816e
Merge pull request #703 from Alexander-N/clippy
Ignore missing `# Safety` section in ffi module
2019-12-28 16:08:55 +09:00
Alexander Niederbühl 3fae391a3c Ignore missing `# Safety` section in ffi module 2019-12-28 03:54:41 +01:00
Yuji Kanagawa 3d463e1630
Merge pull request #702 from gdesmott/hashmap
Implemented FromPyObject for HashMap and BTreeMap
2019-12-25 01:52:06 +09:00
Guillaume Desmottes 6f202efa59 dict: implement FromPyObject for BTreeMap 2019-12-24 18:53:19 +05:30
Guillaume Desmottes ea7a384999 dict: implement FromPyObject for HashMap
Based on code from Ben Avrahami on https://github.com/PyO3/pyo3/issues/516
2019-12-24 18:53:00 +05:30
kngwyu 58590393c5 Fix accidently changed file permission 2019-12-24 12:27:22 +09:00
kngwyu 2e3ece8022 Try to enhance class section in the guide 2019-12-24 00:30:46 +09:00
kngwyu ea51756933 Resolve some clippy complains 2019-12-23 18:05:06 +09:00
kngwyu d5cff058ef Fix documents and a clippy warning 2019-12-23 02:09:36 +09:00
kngwyu acb1120c55 Fix examples with the new #[new] API 2019-12-22 23:59:28 +09:00
kngwyu e2dc843de5 Fix a corner case for PyClassInitializer 2019-12-22 23:54:41 +09:00
kngwyu efa16a6dc7 Fix documents accompanied by PyClassShell 2019-12-22 19:41:25 +09:00
kngwyu 6b84401126 Make it enable to safely inherit native types 2019-12-21 23:28:55 +09:00
kngwyu 8175d6f36a Merge branch 'master' into pyclass-new-layout 2019-12-19 16:12:45 +09:00
Yuji Kanagawa c8cb3adc23
Merge pull request #692 from davidhewitt/override-method-names
Add #[name = "foo"] attribute to #[pymethods]
2019-12-19 13:18:23 +09:00
David Hewitt b245e71c14 Address comments from PR#692 2019-12-18 14:26:25 +00:00
David Hewitt 0032508c3c Format code 2019-12-17 22:58:34 +00:00
David Hewitt 4b18830f1e Add `#[name]` attribute support for `#[pyfunction]` 2019-12-17 22:14:28 +00:00
David Hewitt 881cb0a5a4 Fix build failure on minimum nightly 2019-12-17 18:08:35 +00:00
David Hewitt 7702395b3d Add #[name = "foo"] attribute to #[pymethods] 2019-12-17 17:45:53 +00:00
Yuji Kanagawa 15187674f2
Merge pull request #691 from davidhewitt/patch-1
Fix documentation typo
2019-12-17 19:25:15 +09:00
David Hewitt 0b45135ff6
Fix documentation typo 2019-12-17 09:42:00 +00:00
kngwyu b86de9376d Introduce PyClassInitializer 2019-12-15 21:04:36 +09:00
kngwyu a6639076b9 Introduce PyInternalCaster 2019-12-14 23:16:39 +09:00
Yuji Kanagawa 4aa2ff5e0a
Merge pull request #690 from PyO3/v0.8.4
Bump version to 0.8.4
2019-12-14 22:29:34 +09:00
kngwyu d8a4ecb476 Bump version to 0.8.4 2019-12-14 15:20:55 +09:00
kngwyu 4d7dfafe2b Allow slf: &PyClassShell<Self> 2019-12-08 23:09:00 +09:00
kngwyu bdb66afe0a Make PyClassShell have dict&weakref 2019-12-08 17:18:25 +09:00
kngwyu 4b5fa7e977 Introduce PyClass trait and PyClassShell 2019-12-07 17:56:49 +09:00