Commit graph

1736 commits

Author SHA1 Message Date
Alexander Niederbühl 7aaef51ab0 Define limits for datetime tests as datetime literals 2019-10-21 16:50:43 +02:00
Yuji Kanagawa 6a89a904e3
Merge pull request #637 from Alexander-N/bytes
Implement conversion traits for PyBytes
2019-10-21 00:21:44 +09:00
Alexander Niederbühl 69cbf1a494 Remove test_get_pybytes 2019-10-20 15:12:17 +02:00
Alexander Niederbühl b0925e1109 Add conversion traits for PyBytes 2019-10-20 14:42:12 +02:00
Alexander Niederbühl ffe4e2f20a Make datetime range for tests smaller 2019-10-19 18:28:53 +02:00
Alexander Niederbühl 8cdc0b42dd Fix minimum and maximum for datetime tests
Depending on the local timezone one could get

  ValueError: year 0 is out of range
2019-10-19 17:56:39 +02:00
Yuji Kanagawa f6f607ef68
Merge pull request #624 from kngwyu/seq-setitem
Fix PySequenceProtocol::set_item
2019-10-19 13:44:49 +09:00
Yuji Kanagawa 69975339be
Merge pull request #630 from programmerjake/fix-bigint-overflow
Fix off-by-one error in FromPyObject for BigInt
2019-10-19 13:44:32 +09:00
Yuji Kanagawa 2713977fff
Merge pull request #631 from kngwyu/output-fix
Fix index error in parameter conversion codes
2019-10-19 12:40:19 +09:00
Jacob Lifshay f55037c377 switch to using macro for test & change test name 2019-10-18 16:20:16 -07:00
kngwyu 3c898ee27d [derive-backend] Do not increment option_pos for *args/**kwargs 2019-10-16 02:51:22 +09:00
Jacob Lifshay 85492842ac Fix off-by-one error in FromPyObject for BigInt
Fixes #629
2019-10-14 22:31:22 -07:00
Yuji Kanagawa c7f3cde930
Merge pull request #627 from Alexander-N/tests
Make tests for optional arguments more consistent
2019-10-15 00:02:37 +09:00
Alexander Niederbühl e91d969e17 Make tests for optional arguments more consistent 2019-10-13 23:17:57 +02:00
Yuji Kanagawa 1796335617
Merge pull request #626 from Alexander-N/unwrap
Remove unwrap for attribute parsing
2019-10-13 15:46:17 +09:00
Yuji Kanagawa e57a98944c
Merge pull request #625 from Alexander-N/none-default
Enable to give None as default value for an argument
2019-10-13 15:42:55 +09:00
Alexander Niederbühl 65ad8a87ff Remove unwrap for attribute parsing
This change enables getting a helpful error message.
2019-10-12 20:29:03 +02:00
Alexander Niederbühl c7a53611e0 Enable to give None as default value for an argument 2019-10-12 20:16:25 +02:00
Yuji Kanagawa 08bfec76a8
Merge pull request #623 from kngwyu/err-items
Support TryFromSliceError/TryFromIntError -> PyErr conversion
2019-10-12 21:03:39 +09:00
kngwyu d57f2423c8 Fix PySequenceProtocol::set_item 2019-10-12 21:03:21 +09:00
Yuji Kanagawa 77f8cad65f
Merge pull request #620 from namuyan/master
check python interpreter by --version option
2019-10-12 17:39:49 +09:00
kngwyu ee69ffd0f0 Support TryFromSliceError/TryFromIntError -> PyErr conversion 2019-10-12 17:25:28 +09:00
namuyan 91b3231038 complicated method chain 2019-10-12 17:00:19 +09:00
Yuji Kanagawa e6ad49b6bf
Merge pull request #622 from kngwyu/bigint-topyobj
Implement IntoPy<PyObject> for BigInts
2019-10-12 16:58:58 +09:00
kngwyu 13ccdbee84 Implement IntoPy<PyObject> for BigInts 2019-10-12 15:13:09 +09:00
Yuji Kanagawa f96595799d
Merge pull request #612 from macisamuele/maci-fix-test_pybuffer_doesnot_leak_memory
Add assertions around memory_diff in test_pybuffer_doesnot_leak_memory
2019-10-12 14:03:45 +09:00
namuyan 4b1c48831a catch stdout(others) and stderr(windows) output 2019-10-12 13:13:28 +09:00
namuyan 5d19b9124a check python interpreter by --version 2019-10-12 11:23:27 +09:00
Samuele Maci 25564e115a Trigger garbage collection before and after calling the rust binding 2019-10-11 18:46:21 +02:00
Samuele Maci 9ff41fcd3b Rename BytesExtractor method names to reflect their actions 2019-10-11 17:59:48 +02:00
Samuele Maci 681996da38 Add assertions around memory_diff in test_pybuffer_doesnot_leak_memory 2019-10-11 16:10:19 +02:00
Yuji Kanagawa 89b7c7e309
Merge pull request #616 from PyO3/v0.8.1
Bump version to 0.8.1
2019-10-08 11:50:31 +09:00
kngwyu d019fe814c Bump version to 0.8.1 2019-10-08 01:52:06 +09:00
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