Commit Graph

2168 Commits

Author SHA1 Message Date
Georg Brandl e649e58674 docstrings: fixes, also point to the new guide chapter 2020-03-17 10:04:29 +01:00
Yuji Kanagawa 1099974316
Merge pull request #811 from PyO3/python-3-9-dev
Use python 3.8 final and 3.9-dev on travis
2020-03-17 15:57:21 +09:00
kngwyu 88f0c7ec75 Use Ubuntu 18.04 bionic in travis 2020-03-17 13:42:13 +09:00
Georg Brandl fa2e22b9be
guide: add type overview (#801)
* book: add type overview

fixes #789

Co-Authored-By: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
Co-Authored-By: Yuji Kanagawa <yuji.kngw.80s.revive@gmail.com>

* Add concrete pointer types to the list.

* Add suggestions from @kngwyu

Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
Co-authored-by: Yuji Kanagawa <yuji.kngw.80s.revive@gmail.com>
2020-03-16 22:57:27 +09:00
Yuji Kanagawa d4281a0cd3
Merge pull request #809 from kngwyu/fix-module-dict
Fix PyModule::dict
2020-03-16 22:56:13 +09:00
konstin d69b815bb5
Use python 3.8 final and 3.9-dev on travis
Python 3.8 is released, python 3.9 is the current dev version.
2020-03-16 13:55:35 +01:00
Yuji Kanagawa e09873be31
Merge pull request #810 from kngwyu/fix-ci-error-around-proc-macro
Specify default-features = false for proc-macro related ctates
2020-03-16 20:49:12 +09:00
kngwyu 8480396a22 Specify default-features = false for proc-macro related ctates 2020-03-16 19:50:09 +09:00
kngwyu 40077245ea Fix PyModule::dict 2020-03-16 15:45:54 +09:00
Georg Brandl 3f030d46fd
guide: fixes and some minor additions (#802)
* guide: fixes and some minor additions

I went through the guide and fixed some grammar/consistency issues,
and added some wording where I thought it appropriate.

I also reordered the chapters to what I feel is a more natural
flow of concepts.

* Apply suggestions from code review and fix tests

Co-Authored-By: Yuji Kanagawa <yuji.kngw.80s.revive@gmail.com>
Co-Authored-By: David Hewitt <1939362+davidhewitt@users.noreply.github.com>

Co-authored-by: Yuji Kanagawa <yuji.kngw.80s.revive@gmail.com>
Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
2020-03-13 22:53:49 +09:00
Yuji Kanagawa a92ca0167b
Merge pull request #806 from birkenfeld/make-fix
"make test": fail if one of the example toxes fails
2020-03-13 22:06:13 +09:00
Georg Brandl 701fb7f2b5 "make test": fail if one of the example toxes fails 2020-03-13 13:29:30 +01:00
Yuji Kanagawa 9c3331e66c
Merge pull request #795 from PyO3/relase-0.9
Write migration guide
2020-03-13 19:11:51 +09:00
kngwyu 433b812a68 Remove ^ from Cargo.toml + small improvements for migration.md 2020-03-13 18:40:43 +09:00
David Hewitt 759dbeaed7 Fix clippy lifetime lint 2020-03-10 18:49:23 +00:00
kngwyu 107c0cf1ba Unify AsPyRef for Py<T> to make rust-numpy work 2020-03-09 18:31:43 +09:00
kngwyu a6765e3888 Mention `let obj: T = obj.extract()?;` in migration.md 2020-03-09 16:02:42 +09:00
kngwyu 084b3621be Relax version requirements for dependencies 2020-03-09 14:32:49 +09:00
Yuji Kanagawa 3a0cd8e405 Apply suggestions from georg's review to migration.md
Co-Authored-By: Georg Brandl <georg@python.org>
2020-03-09 14:32:35 +09:00
Yuji Kanagawa 8eb0065e38 Apply suggestions from code review
Co-Authored-By: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
2020-03-09 14:11:14 +09:00
kngwyu ded83027fa Write migration guide for 0.9 2020-03-09 14:11:14 +09:00
Yuji Kanagawa f2f5877f00
Merge pull request #796 from kngwyu/refactor-build
Refactor build.rs
2020-03-09 10:42:47 +09:00
kngwyu e67681d018 Refactor build.rs 2020-03-08 22:54:42 +09:00
Yuji Kanagawa 1a8ebc230a
Merge pull request #792 from kngwyu/separator
Fix the interpretation of vararg separator
2020-03-08 01:32:51 +09:00
Yuji Kanagawa b7c4fdb9bc
Update CHANGELOG.md
Co-Authored-By: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
2020-03-08 00:57:11 +09:00
kngwyu 26fe29f0cb Some refactorings for pyfunction.rs 2020-03-06 19:01:05 +09:00
kngwyu cea707dd1c Inhibit positional args after * 2020-03-06 14:01:27 +09:00
kngwyu 25069baef4 Fix the interpretation of '*' 2020-03-04 23:48:46 +09:00
Yuji Kanagawa 74b22eb651
Merge pull request #791 from kngwyu/pyclass-arg
Make it enable to take &PyClass as arguments as pyfunctions/methods
2020-03-04 21:31:39 +09:00
kngwyu 96115eaaaa Refactor some tests in test_methods 2020-03-04 20:35:46 +09:00
kngwyu bbe4393b1e Add more tests in method_with_pyclassarg 2020-03-04 20:25:30 +09:00
kngwyu e63e0cbf5a Make it enable to take &PyClass as arguments as pyfunctions/methods 2020-03-04 13:37:26 +09:00
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