Commit Graph

2386 Commits

Author SHA1 Message Date
Yuji Kanagawa c5a093d8d6
Merge pull request #788 from kngwyu/mkmod-refactor
Remove static mut from make_module
2020-03-04 13:10:25 +09:00
kngwyu 6307c25b81 Remove static mut from make_module 2020-03-03 18:46:20 +09:00
Yuji Kanagawa 3115667181
Merge pull request #783 from kngwyu/fix-pylayout
Fix PyLayout and restrict PyRef::as_ref for non-native types
2020-03-03 17:09:28 +09:00
Yuji Kanagawa f470154cdf
Merge pull request #778 from c410-f3r/array-impls
Implement `FromPyObject` and `IntoPy<PyObject>` traits for arrays (up to 32)
2020-03-03 14:15:23 +09:00
Yuji Kanagawa 402c382f0e
Make rustfmt happy 2020-03-03 13:41:15 +09:00
Yuji Kanagawa 09e36f255e
Merge pull request #779 from davidhewitt/check-architecture
Check python and target arcitecture match in build.rs
2020-03-03 13:12:55 +09:00
Yuji Kanagawa dc8e0c4c18
Merge branch 'master' into array-impls 2020-03-03 13:07:03 +09:00
Yuji Kanagawa ebb528d17d
Merge pull request #784 from kngwyu/py38-ffi
Make FFIs Python3.8 compatible
2020-03-03 13:04:48 +09:00
Caio 6b78f1b43c Implement `*Py*` traits for arrays (up to 32) 2020-03-02 18:25:07 -03:00
kngwyu 68cfd5e17a Remove redundant empty lines from class.md 2020-03-02 20:54:35 +09:00
kngwyu 4b9cb70c3e Update CHANGELOG 2020-03-02 20:44:29 +09:00
kngwyu 7deb3b1fb2 Make FFIs Python3.8 compatible 2020-03-02 20:12:12 +09:00
kngwyu a12667be25 Add a document about inherting native types 2020-03-02 20:07:23 +09:00
kngwyu 39c299959e Fix PyLayout and restrict PyRef::as_ref for non-native types 2020-03-02 18:42:04 +09:00
Yuji Kanagawa fee755adbe
Merge pull request #770 from kngwyu/pycell
Rename PyClassShell with `PyCell` and do mutability checking
2020-03-02 14:56:51 +09:00
kngwyu ee0c178fed Remove ObjectProtocol::get_base and fix class.md 2020-03-02 13:08:37 +09:00
kngwyu ca6227c739 Address review comments 2020-03-01 12:58:28 +09:00
Yuji Kanagawa 399e4bf9b1
Apply suggestions from code review
Co-Authored-By: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
2020-03-01 12:43:04 +09:00
David Hewitt 24a3fbd4e2 Check python and target arcitecture match in build.rs 2020-02-29 12:24:04 +00:00
Yuji Kanagawa 3ded0b2c53
Merge pull request #777 from oconnor663/release
avoid calling ffi::PyBuffer_Release twice in PyBuffer::release
2020-02-29 15:20:39 +09:00
Jack O'Connor 6568d78e24 avoid calling ffi::PyBuffer_Release twice in PyBuffer::release
Fixes https://github.com/PyO3/pyo3/issues/776.
2020-02-28 16:59:44 -05:00
kngwyu 461b32a432 More docs 2020-02-28 16:49:25 +09:00
kngwyu dcac5ad200 Simplify PyLayout 2020-02-26 17:19:33 +09:00
kngwyu 6a64806d90 Address clippy warnings 2020-02-26 17:10:46 +09:00
kngwyu 05159417a8 Update CHANGELOG 2020-02-25 22:16:27 +09:00
kngwyu ff1ae98326 Fix class.md 2020-02-25 21:56:23 +09:00
kngwyu bab146a580 Refactor set_item 2020-02-25 20:16:49 +09:00
kngwyu 6c652dff8c Merge branch 'master' into pycell 2020-02-25 20:15:17 +09:00
kngwyu 18957159f4 Add tests for inheriting class with dict or weakref 2020-02-25 20:02:27 +09:00
kngwyu 9bc41923be More documents for AsPyRef and PyRef 2020-02-25 19:56:58 +09:00
kngwyu 68a3b15943 Use PyBorrowFlagLayout to ensure the baseclass has a borrow flag 2020-02-23 01:02:14 +09:00
kngwyu 0e3f7cbc30 More documents for PyCell 2020-02-23 00:56:34 +09:00
kngwyu d3d61c6ad3 Remove all usages of unguarded 2020-02-22 20:26:11 +09:00
kngwyu c2a40fbf70 Modify CallbackConverter so that it can deal with try_borrow well 2020-02-22 20:01:08 +09:00
kngwyu 043b13046a Write docs for PyCell, PyRef, PyRefMut 2020-02-22 16:21:09 +09:00
kngwyu 3d0ee2a28d Use AsRef/AsMut instead of as_super/as_super_mut 2020-02-21 20:37:35 +09:00
Yuji Kanagawa 90b14fb369
Merge pull request #772 from andrewwhitehead/buffer-refs
Buffer protocol updates to support object references, custom release method
2020-02-21 13:05:26 +09:00
Andrew Whitehead aae57e704f
make clippy happy
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
2020-02-20 14:30:48 -08:00
Andrew Whitehead ca6cb99a4b
Implement buffer release for PyBufferProtocol; change callback signatures to pass PyClassShell
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
2020-02-20 12:48:22 -08:00
kngwyu 1f5cb83ef8 Add tests for mutability checking 2020-02-18 15:28:04 +09:00
kngwyu 4b746af11b Rename unchecked_refmut -> unchecked_mut 2020-02-18 12:55:06 +09:00
Yuji Kanagawa 98d810e662 Apply suggestions from davidhewitt's review
Co-Authored-By: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
2020-02-18 12:51:02 +09:00
kngwyu daca04e5f3 Update class.md and Change super API 2020-02-18 00:19:55 +09:00
kngwyu 2fd2185052 Merge branch 'master' into pycell 2020-02-17 00:07:15 +09:00
kngwyu 8f8b42591a Fix PySelf and AsPyRef 2020-02-16 23:54:55 +09:00
Yuji Kanagawa 45d892a970
Merge pull request #769 from davidhewitt/cfg-attrs
Make #[pymethods] aware of #[cfg]
2020-02-16 00:17:11 +09:00
David Hewitt d5509424b2 Make #[pymethods] aware of #[cfg] 2020-02-15 14:07:48 +00:00
kngwyu da4ed398bb Fix PyCell to share BorrowFlag with parents 2020-02-15 18:13:39 +09:00
Yuji Kanagawa 0b5918e94d
Merge pull request #767 from gilescope/more-docs
(docs update) Focusing on FromPy rather than IntoPy
2020-02-15 15:10:39 +09:00
Yuji Kanagawa 7910dfc94c
Merge pull request #764 from bmatthieu3/add_mocpy_example
Add mocpy to the list of examples using pyo3
2020-02-14 19:53:09 +09:00