Commit Graph

1703 Commits

Author SHA1 Message Date
Yuji Kanagawa d602b65347
Merge pull request #615 from PyO3/fix-specialization
Fix broken specialized implementations with Rust 1.40
2019-10-08 01:39:07 +09:00
Yuji Kanagawa 091284d449
Merge pull request #608 from kngwyu/bigint
Support conversion between num-bigint <-> Python Long
2019-10-08 01:38:58 +09:00
Martin Larralde 33bf37d3d8 Run `cargo fmt` on source code and update `CHANGELOG.md` 2019-10-07 17:12:32 +02:00
Martin Larralde 5397a62f48 Fix broken specialized implementations with Rust 1.40 2019-10-07 16:01:15 +02:00
Yuji Kanagawa 36318fc9b3
Merge pull request #613 from xrmx/patch-1
Cleanup some issues in get started guide page
2019-10-07 09:45:33 +09:00
Riccardo Magliocchetti fd3d47e037
guide: fixup links to examples/word-count
Relative paths don't work when built in pyo3.rs
2019-10-06 21:25:29 +02:00
Riccardo Magliocchetti 27105c9414
guide: add link to pypy chapter
Instead of referring to the guide.
2019-10-06 21:22:53 +02:00
kngwyu 9b2fbbbe15 [BigInt] Refactor and handle zero based on reviews 2019-10-04 21:04:26 +09:00
kngwyu a18c8ddf59 Fix typos in BigInt tests 2019-09-28 21:22:42 +09:00
kngwyu 094125cfe2 Test num-bigint on CI 2019-09-28 19:05:15 +09:00
kngwyu f8573e7e13 [BigInt] Fix tests for neg value 2019-09-28 18:12:23 +09:00
kngwyu a6d38c9929 Support conversion between num-bigint and Python Long 2019-09-28 17:43:26 +09:00
kngwyu c38bf5ea7c Use to/from_ne_bytes for 128bit int conversion 2019-09-28 16:19:31 +09:00
Yuji Kanagawa 75516d87eb
Merge pull request #603 from kngwyu/upd-doc
Update README and document
2019-09-28 16:18:53 +09:00
kngwyu d97f003a08 Update trybuild 2019-09-28 15:19:11 +09:00
Yuji Kanagawa d860ee3f21
Merge pull request #597 from kngwyu/err-nosegv
Reguire GIL before constructing PyErr from Rust value
2019-09-28 15:11:23 +09:00
Yuji Kanagawa c743c18432
Merge pull request #598 from kngwyu/buf-leak
Fix memory leak of PyBytes -> Vec conversion
2019-09-28 15:10:49 +09:00
kngwyu a344999526 [DOC] Add Python from Rust section in the guide 2019-09-23 21:44:42 +09:00
kngwyu 1c0ffdd443 Update UI test 2019-09-23 19:26:34 +09:00
kngwyu f1bb043b70 Temporaly skip test_buf_and_str for PyPY 2019-09-23 19:25:27 +09:00
Yuji Kanagawa ce4b3a56a5
Merge pull request #604 from althonos/master
Fix build script always using `python3` in OSX builds
2019-09-15 22:18:19 +09:00
kngwyu 35851b7ff9 Fix documents following the review comment 2019-09-15 22:17:36 +09:00
Martin Larralde b1ff620e48 Add entry to `CHANGELOG.md` 2019-09-15 14:46:06 +02:00
Martin Larralde 9facb20d89 Fix build script always using `python3` in OSX builds 2019-09-15 14:39:22 +02:00
kngwyu 44f26f4bb9 Update README and document 2019-09-15 19:58:41 +09:00
kngwyu 05a1a097a9 Remove mem::forget from PyBuffer::release 2019-09-14 16:56:11 +09:00
Yuji Kanagawa a700e3d7cf
Merge pull request #596 from expobrain/python3_bin
Python3 bin
2019-09-08 17:34:33 +09:00
Daniele Esposti fe9575a34d Search for both python3 and python 2019-09-08 09:10:40 +01:00
kngwyu e911828b79 Add a test to detect memory leak of bytes->vec conversion 2019-09-07 17:59:19 +09:00
Daniele Esposti bd426d4065 Use python3 explicitly 2019-09-07 09:43:44 +01:00
kngwyu 46ba019829 Address clippy warning(to_args->from_err_args) 2019-09-07 16:07:24 +09:00
Yuji Kanagawa 7745622b43
Merge pull request #591 from PyO3/examples-debug
Compile examples in debug mode
2019-09-07 15:56:24 +09:00
kngwyu a82726a240 Reguire GIL before constructing PyErr from Rust value 2019-09-07 15:38:59 +09:00
Yuji Kanagawa 5eb7656a5e
Merge branch 'master' into examples-debug 2019-09-07 11:53:00 +09:00
Yuji Kanagawa aaa28a3bd0
Merge pull request #594 from PyO3/pyo3-pack-to-maturin
Replace pyo3-pack with maturin
2019-09-07 11:49:09 +09:00
Yuji Kanagawa 4bcc994270
Merge pull request #595 from Alexander-N/ffi
Move files from ffi3 into ffi
2019-09-07 11:48:52 +09:00
Alexander Niederbühl 68c3208d35 Move files from ffi3 into ffi
Since Python 2 is no longer supported, one folder should be enough.
2019-09-07 00:50:47 +02:00
konstin 73947d84b4
Format examples with black (#590) 2019-09-06 01:16:09 +02:00
konstin a3cde076f4 Replace pyo3-pack with maturin 2019-09-06 01:12:37 +02:00
konstin 88b0a03dcd
Merge pull request #586 from PyO3/release-0.8.0
Release 0.8.0
2019-09-05 15:13:11 +02:00
konstin a3e41cc819 Release 0.8.0 2019-09-05 13:18:50 +02:00
konstin 94f6248d87 Compile examples in debug mode 2019-09-05 13:13:06 +02:00
konstin 3228b4cd6c
Merge pull request #585 from andersk/drain-gil
Require the GIL to be held in ReleasePool::drain
2019-09-05 12:46:35 +02:00
konstin 305b774ded
Merge pull request #450 from birkenfeld/parse_args_msg
Adjust the varargs/kwds objects to remove arguments consumed by parameters
2019-09-05 12:45:50 +02:00
konstin d3c5a61d75
Merge pull request #588 from kngwyu/ref-into-tweak
Enable slf: PyRef<'py, Self>
2019-09-05 12:43:47 +02:00
kngwyu df44e500a9 Remove py from parse_fn_args's args(to address clippy warning) 2019-09-02 23:05:42 +09:00
kngwyu 3d821b7f47 Enable slf: PyRef<'py, Self> 2019-09-02 00:31:22 +09:00
kngwyu c7e377a472 [derive_utils] Copy kwargs not to modify it 2019-09-01 23:59:24 +09:00
kngwyu 96b71bfb76 Merge branch 'master' into parse_args_msg 2019-08-31 17:03:15 +09:00
Anders Kaseorg e70e9ab5e6 Require the GIL to be held to drain the ReleasePool
This adds a `Python` marker to `GILPool`, to prevent the caller from
misusing it to drain the `ReleasePool` and release Python objects
without the GIL held.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2019-08-29 23:55:59 -07:00