Commit Graph

1741 Commits

Author SHA1 Message Date
kngwyu b86de9376d Introduce PyClassInitializer 2019-12-15 21:04:36 +09:00
kngwyu a6639076b9 Introduce PyInternalCaster 2019-12-14 23:16:39 +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
Yuji Kanagawa 352707c29f
Merge pull request #675 from programmerjake/add-text-signature
add #[text_signature = "..."] attribute
2019-12-07 13:56:33 +09:00
Jacob Lifshay a676e6d5aa clean up gen_py_method and fix typos 2019-12-06 15:05:41 -08:00
Yuji Kanagawa ac703f58a6
Merge pull request #681 from nagisa/fix-docs
Fix docs on how to obtain object from PyErr
2019-12-05 11:19:58 +09:00
Simonas Kazlauskas 2ba887a8cf Fix docs on how to obtain object from PyErr 2019-12-05 00:56:10 +02:00
Jacob Lifshay 95c2e2f585 clean up parse_text_signature_attrs and get_doc 2019-12-03 16:42:48 -08:00
Jacob Lifshay 07611b0358 remove unnecessary lifetime 2019-11-29 13:34:04 -08:00
Jacob Lifshay 9ac66ac1eb add text_signature to changelog 2019-11-29 13:31:21 -08:00
Jacob Lifshay 9a3c47e3cd add text_signature to documentation 2019-11-29 13:22:31 -08:00
Jacob Lifshay af8c0d2531 switch text_signature to arguments only & add tests 2019-11-29 12:19:56 -08:00
Jacob Lifshay 2915f50fc4 fix compile error 2019-11-27 14:31:16 -08:00
Yuji Kanagawa 064cd387e0
Merge pull request #676 from Alexander-N/broken-links
Fix broken links in guide
2019-11-26 12:51:00 +09:00
Alexander Niederbühl c64848bd20 Fix broken links in guide 2019-11-25 20:34:29 +01:00
Jacob Lifshay 3c1a975ec0 initial untested implementation 2019-11-24 06:00:21 -08:00
Yuji Kanagawa 42ee180116
Merge pull request #674 from PyO3/v0.8.3
V0.8.3 amend
2019-11-23 20:08:48 +09:00
kngwyu a85ed6ba80 Update git tags for CHANGELOG 2019-11-23 18:39:59 +09:00
Yuji Kanagawa 9893f5cc6b
Merge pull request #673 from PyO3/v0.8.3
Bump version to 0.8.3
2019-11-23 18:37:13 +09:00
kngwyu 935adaa5d5 Bump version to 0.8.3 2019-11-23 17:09:10 +09:00
kngwyu 6c6d54db3c Fix compile error in the latest nightly 2019-11-23 16:29:49 +09:00
kngwyu c7016f8e4c Refer guide for nightly install 2019-11-23 15:36:30 +09:00
Yuji Kanagawa 3881cc064b
Merge pull request #668 from PyO3/github-actions
Enable Github Actions for Windows CI
2019-11-17 22:27:54 +09:00
kngwyu 5b8f436252 Replace appveyor badge instead of Actions badge 2019-11-17 18:09:55 +09:00
kngwyu dadeb17c3a Fix Windows test 2019-11-17 16:34:55 +09:00
kngwyu c0386f3d00 Delete appveyor.yml 2019-11-17 12:16:36 +09:00
Yuji Kanagawa 8204bd08a0
Enable Github Actions for Windows CI 2019-11-16 21:39:59 +09:00
Yuji Kanagawa 8b2b40c2a0
Merge pull request #667 from kngwyu/upd-np
Update the link to rust-numpy and tooling section in guide
2019-11-16 17:56:03 +09:00
kngwyu b7b17edc1d Update the link to rust-numpy and tooling section in guide 2019-11-16 15:40:25 +09:00
Yuji Kanagawa 99f9b36b2a
Merge pull request #658 from kngwyu/remove-init
[NEED DISCUSSION] Remove #[init] attribute
2019-11-09 15:34:00 +09:00
kngwyu 3eff3ca504 Remove unnecessary parentheses 2019-11-02 15:18:40 +09:00
kngwyu f0526eb739 Change error message around #[init] 2019-11-02 14:44:16 +09:00
kngwyu 8550e0f575 Remove #[init] attribute 2019-10-31 19:39:53 +09:00
Yuji Kanagawa 72debedc39
Merge pull request #655 from kngwyu/unsendable
Make &Py~ types unsendable
2019-10-31 16:13:23 +09:00
kngwyu b5157b0431 Add doctests for allow_threads 2019-10-28 13:21:30 +09:00
kngwyu 6dff93b7e9 Make &Py~ types unsendable 2019-10-27 23:13:07 +09:00
kngwyu 7977fe68e2 Use Unsendable alias instead of Phantomdata<Rc<()>> 2019-10-27 23:12:59 +09:00
Yuji Kanagawa fe229753fb
Merge pull request #650 from PyO3/v0.8.2
Bump version to 0.8.2
2019-10-27 15:10:41 +09:00
kngwyu 14d2196ba0 Bump version to 0.8.2 2019-10-26 22:47:19 +09:00
Yuji Kanagawa da1ab1b2b8
Merge pull request #644 from sebpuetz/fix-mapping-protocol
Remove contains and iter from PyMappingProtocol.
2019-10-26 22:36:08 +09:00
Yuji Kanagawa 59975f8dd8
Merge pull request #647 from Alexander-N/bytes
Move PyBytes from string.rs into own file
2019-10-26 21:22:08 +09:00
Alexander Niederbühl 04dece4804 Move PyBytes from string.rs into own file 2019-10-26 00:56:14 +02:00
Yuji Kanagawa 6868d7f734
Merge branch 'master' into fix-mapping-protocol 2019-10-26 02:55:54 +09:00
Yuji Kanagawa f8e07b2d3f
Merge pull request #645 from sebpuetz/fix-set-attr-protocol
Fix derive for PyObjectSetAttrProtocol.
2019-10-26 00:24:02 +09:00
Sebastian Puetz 3b707c8511 Remove contains and iter from PyMappingProtocol.
The methods are not expected by CPython and are only explicitly
callable. To get iteration support, PyIterProtocol should be
implemented and to get support for `x in mapping`,
PySequenceProtocol's __contains__ should be implemented.

https://github.com/PyO3/pyo3/issues/611
2019-10-25 17:20:44 +02:00
Sebastian Puetz 4864c584f3 Fix derive for PyObjectSetAttrProtocol.
PyObjectSetAttrProtocol doesn't define associated type Success.
2019-10-25 16:10:00 +02:00
Yuji Kanagawa 30485f3f98
Merge pull request #642 from Alexander-N/to_string_lossy
Fix handling of invalid utf-8 sequences in PyString::to_string_lossy
2019-10-25 12:51:53 +09:00
Alexander Niederbühl defa43015a Fix handling of invalid utf-8 sequences in PyString::to_string_lossy 2019-10-24 22:45:32 +02:00