kngwyu
75c807f31d
Less borrow in GILPool::drop
2020-05-02 23:39:52 +09:00
David Hewitt
dfbe22bb56
Thread-safe release pools
2020-05-02 13:16:22 +01:00
kngwyu
b6befcfb93
CHANGELOG and better docs for PyMethodsImpl
2020-05-02 18:46:48 +09:00
kngwyu
816c50a649
Unify PyMethodsInventoryDispatch and PyMethodsProtocol
2020-05-02 17:48:25 +09:00
kngwyu
39bfb5f0d5
Clean up gil tests
2020-05-02 15:33:10 +09:00
kngwyu
8c6cbb605a
Better docs for new unchecked_downcast and borrowed objects
2020-05-02 14:58:12 +09:00
kngwyu
823b8e7f8a
New Native Types and lighter GILPool
2020-05-02 14:54:13 +09:00
David Hewitt
3008528fa6
Allow use of #[pyo3(get, set)]
with Py<T>
2020-04-22 22:21:27 +01:00
Mara Bos
dcab478d66
Fix lifetime safety bug of AsPyRef::as_ref(). ( #876 )
...
* Fix lifetime safety bug of AsPyRef::as_ref().
Fixes #875 .
* Add test for AsPyRef's lifetimes.
2020-04-20 18:44:31 +01:00
Martin Larralde
378a6a484c
Move TryFromPyCell
trait to derive_utils
module
2020-04-19 12:57:31 +02:00
Martin Larralde
b3c937c73a
Reformat code with rustfmt
2020-04-18 03:59:42 +02:00
Martin Larralde
187d889565
Make PyIterProtocol
methods accept both PyRef
and PyRefMut
2020-04-18 03:57:17 +02:00
Martin Larralde
42e84ea6ff
Add compatibility trait TryFromPyCell
to pyo3::pycell
2020-04-18 03:38:27 +02:00
kngwyu
2cd466dc46
Bound 'py lifetime by GILPool when it's possible
2020-04-12 23:55:23 +09:00
David Hewitt
97fd658593
Add IntoPy<PyObject> for HashSet and BTreeSet ( #865 )
2020-04-12 14:44:01 +09:00
Yuji Kanagawa
7b1e8a6daf
Merge pull request #851 from davidhewitt/pointer-optimization
...
Improve performance on pointer drop
2020-04-10 12:30:35 +09:00
Yuji Kanagawa
5add8d1dee
Merge branch 'master' into merge-0.9.2
2020-04-09 17:17:52 +09:00
David Hewitt
fe57f64435
Improve performance on pointer drop
...
Co-Authored-By: Yuji Kanagawa <yuji.kngw.80s.revive@gmail.com>
2020-04-09 08:51:43 +01:00
Yuji Kanagawa
53b63cddc2
Merge pull request #855 from althonos/patch-gc
...
Fix potential panics caused by Garbage Collector
2020-04-09 16:39:58 +09:00
kngwyu
c83d88ba8d
Bump version to 0.9.2
2020-04-09 13:00:13 +09:00
David Hewitt
d8effb24e8
Refactor CallbackConverter code
...
Now shorter and allows use of the ? operator inside callback code
2020-04-08 21:55:11 +01:00
Martin Larralde
b73bb06ff4
Fix panics caused by GC borrowing when class is already mutably borrowed
2020-04-08 16:25:32 +02:00
Yuji Kanagawa
a9357ef8a1
Merge pull request #852 from davidhewitt/20200407-fix-clippy-warnings
...
Fix clippy complaint of empty return type
2020-04-08 21:00:12 +09:00
David Hewitt
8f41d56b9e
Fix clippy complaint of empty return type
2020-04-08 08:04:29 +01:00
ijl
97f4987958
_PyDict_NewPresized()
2020-04-06 14:55:12 +00:00
kngwyu
810d3b62ab
Add tests for FromPyObject implementation for HashSet/BTreeSet
2020-03-30 14:37:37 +09:00
Yuji Kanagawa
85de698a0d
Merge pull request #839 from kngwyu/radd-fix
...
Make __r*__ methods work with operators
2020-03-30 12:40:17 +09:00
Árni Dagur
97aca504a3
Implement FromPyObject for HashSet and BTreeSet
2020-03-29 20:58:36 -04:00
kngwyu
ac418ce020
Inhibit __ipow__ to take Modulo
2020-03-30 03:01:44 +09:00
kngwyu
25eda36353
Speficy METH_COEXIST for some number methods except
2020-03-30 02:02:57 +09:00
kngwyu
970e393bb9
Make __r*__ methods work by slot fallback
2020-03-28 18:17:40 +09:00
kngwyu
5280a281c9
Remove GILPool::new_no_pointer
2020-03-26 19:45:32 +09:00
kngwyu
4759358acb
Bump version to 0.9.1
2020-03-23 18:55:24 +09:00
kngwyu
1e39071c04
Retrieve FromPyObject implementation for &PySequence
2020-03-22 20:00:21 +09:00
kngwyu
89e5a654ad
Bump version to 0.9.0
2020-03-19 13:48:00 +09:00
kngwyu
e9b15b83ff
Change PyBorrowError and PyBorrowMutError to inherit RuntimeError
2020-03-19 13:47:37 +09:00
Yuji Kanagawa
25b594cd47
Merge pull request #820 from ijl/more-ffi
...
More bytes, dict FFI
2020-03-19 13:44:40 +09:00
kngwyu
9f4ea2b234
Fix the case where T::DESCRIPTION is not null-terminated
2020-03-19 12:17:06 +09:00
ijl
e58249cf55
_PyDict_Next(), _PyDict_Contains(), _PyObject_GetDictPtr()
2020-03-18 22:46:51 +00:00
ijl
5e14b39c62
_PyBytes_Resize()
2020-03-18 22:41:20 +00:00
kngwyu
02ee7a5afc
Expose PyAny to lib.rs and prelude
2020-03-18 13:38:18 +09:00
Georg Brandl
e026013321
Apply suggestions from code review
...
Co-Authored-By: Alexander Niederbühl <a.niederbuehl@gmail.com>
2020-03-17 20:06:09 +01:00
Georg Brandl
b7d5f9097b
Fix tests
...
Co-Authored-By: Yuji Kanagawa <yuji.kngw.80s.revive@gmail.com>
2020-03-17 16:49:48 +01:00
Georg Brandl
77b1ae3137
lib: overhaul docstrings
2020-03-17 15:16:30 +01:00
Georg Brandl
a7a2ccb5ff
Apply suggestions from code review
2020-03-17 10:54:51 +01:00
Georg Brandl
4da5dbcd01
Apply suggestions from code review
...
Co-Authored-By: Yuji Kanagawa <yuji.kngw.80s.revive@gmail.com>
2020-03-17 10:54:05 +01:00
Georg Brandl
e649e58674
docstrings: fixes, also point to the new guide chapter
2020-03-17 10:04:29 +01:00
kngwyu
40077245ea
Fix PyModule::dict
2020-03-16 15:45:54 +09:00
kngwyu
107c0cf1ba
Unify AsPyRef for Py<T> to make rust-numpy work
2020-03-09 18:31:43 +09:00
kngwyu
ded83027fa
Write migration guide for 0.9
2020-03-09 14:11:14 +09:00
kngwyu
25069baef4
Fix the interpretation of '*'
2020-03-04 23:48:46 +09:00
kngwyu
e63e0cbf5a
Make it enable to take &PyClass as arguments as pyfunctions/methods
2020-03-04 13:37:26 +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
402c382f0e
Make rustfmt happy
2020-03-03 13:41:15 +09:00
Yuji Kanagawa
dc8e0c4c18
Merge branch 'master' into array-impls
2020-03-03 13:07:03 +09:00
Caio
6b78f1b43c
Implement *Py*
traits for arrays (up to 32)
2020-03-02 18:25:07 -03: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
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
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
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
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
kngwyu
da4ed398bb
Fix PyCell to share BorrowFlag with parents
2020-02-15 18:13:39 +09:00
kngwyu
4a5f219cc4
New AsPyRef
2020-02-11 18:50:50 +09:00
kngwyu
c43fb9fcdf
Prototype Implementation of RefCell-like PyCell
2020-02-10 16:13:15 +09:00
Yuji Kanagawa
0eb4eb4e58
Merge branch 'master' into property-fixes
2020-02-10 15:13:19 +09:00
David Hewitt
de9698e7a5
Changes from PR#760
2020-02-09 11:06:44 +00:00
kngwyu
5d4e7374e9
Introduce PyDownCastImpl and Change PyTryFrom and FromPyPointer
2020-02-09 16:35:52 +09:00
David Hewitt
20c6c2d463
Fix clippy warnings
2020-02-08 19:25:52 +00:00
kngwyu
a2408cacbb
Rename PyClassShell with PyCell
2020-02-08 15:05:13 +09:00
kngwyu
ba20b0ef21
Remove unnecessary parentheses from FFI
2020-02-08 14:27:59 +09:00
kngwyu
50de21abb7
Use AtomicBool for lazy types
2020-02-08 14:03:57 +09:00
David Hewitt
f8c8b8effd
Fix for PyObject with #[pyo3(get)]
2020-02-07 19:31:13 +00:00
kngwyu
58a0841ff7
Rewrite LazyTypeObjects without once_cell
2020-02-07 00:10:27 +09:00
kngwyu
f8de335b00
Make PyTypeInfo::type_object return &'static instead of NonNull
2020-02-06 19:11:59 +09:00
Yuji Kanagawa
14980d742d
Merge pull request #755 from davidhewitt/property-doc
...
Fix docstrings generated by `[pyo3(get, set)]`
2020-02-03 18:14:54 +09:00
Yuji Kanagawa
8fea23a0b8
Merge pull request #751 from davidhewitt/remove-static-mut
...
Remove static mut from PyTypeInfo implementation
2020-02-03 17:39:25 +09:00
David Hewitt
dfb7d7c58d
Fix docstrings generated by [pyo3(get, set)]
2020-02-03 08:01:30 +00:00
David Hewitt
04f30c5971
Revisions from PR#751
2020-02-03 07:34:42 +00:00
kngwyu
b88fe39ed6
Implement From<&PyNativeType> for Py
2020-02-02 15:28:44 +09:00
David Hewitt
7531b9fb07
Remove even more uses of static mut
2020-01-30 13:24:55 +00:00
David Hewitt
5cbdef6471
Remove static mut from PyTypeInfo implementation
2020-01-30 00:14:27 +00:00
kngwyu
d1f28e9089
Separate FromPyObjectImpl from pyobject_native_type_convert!
2020-01-29 18:12:16 +09:00
David Hewitt
d536974208
Remove unneeded brackets
2020-01-27 08:33:40 +00:00
Yuji Kanagawa
541816b7d2
Merge pull request #730 from davidhewitt/extract-clone
...
FromPyObject for #[pyclass] with T: Clone
2020-01-25 12:42:05 +09:00
David Hewitt
fdf407e045
FromPyObject for #[pyclass] with T: Clone
2020-01-24 08:57:28 +00:00
David Hewitt
43df3299ab
Remove PyNoArgsFunction
2020-01-22 16:27:36 +00:00
Yuji Kanagawa
4fe1841c5f
Merge branch 'master' into v0.9.0
2020-01-17 14:27:02 +09:00
Yuji Kanagawa
db6c822fa2
Merge pull request #734 from ijl/rm-spin
...
Use parking_lot::Mutex instead of spin::Mutex
2020-01-17 14:24:54 +09:00
ijl
23d380ef07
_Py_HashBytes()
2020-01-16 14:04:25 +00:00
ijl
a55a48b189
_PyDict_SetItem_KnownHash()
2020-01-16 14:04:17 +00:00
ijl
4b2f4b3a15
Use parking_lot::Mutex instead of spin::Mutex
...
spin is no longer maintained.
Fixes #718 .
2020-01-16 13:53:54 +00:00
kngwyu
56f68a55cd
Bump version to 0.9.0-alpha.1
2020-01-16 20:05:44 +09:00
David Hewitt
f45eaa00b5
Remove dead code
2020-01-13 23:26:45 +00:00
Alexander Niederbühl
a126f5d0ab
Fix typo in panic message
2020-01-12 14:33:20 +01:00
kngwyu
302b3bb088
Merge branch 'master' into pyclass-new-layout
2020-01-11 15:03:25 +09:00
Alexander Niederbühl
1f675dcaa7
Clear error indicator when the exception is handled on the Rust side
...
Leaving Python's global exception state is misleading, e.g. subsequent
calls of `py.eval` will fail.
2020-01-11 00:44:11 +01:00
kngwyu
ea9824a982
Fix document for PyList::iter
2020-01-08 23:44:16 +09:00
kngwyu
7b502821ce
Use &PyAny instead of PyObject in PyDictIterator
2020-01-08 23:43:40 +09:00
kngwyu
026caeda68
Implement iter for PySet and PyFrozenSet
2020-01-08 23:15:53 +09:00
kngwyu
c57177a169
Refine tests and documents around pyclass.rs
2020-01-08 22:44:50 +09:00
David Hewitt
f7a4fbaa38
Use _PySet_NextEntry
2020-01-08 09:43:03 +00:00
kngwyu
451de182cb
Merge branch 'master' into pyclass-new-layout
2020-01-08 17:16:33 +09:00
David Hewitt
ec79285fe4
Implement IntoIterator for PySet and PyFrozenSet
2020-01-08 00:07:11 +00:00
David Hewitt
72e9abd4c7
Remove specialization from IntoPy implementation
2020-01-07 09:32:34 +00:00
David Hewitt
bf507da154
Remove specialization from FromPyObject blanket impls
2020-01-07 09:01:35 +00:00
kngwyu
ab0a731e5e
Fix use order in prelude
2020-01-07 17:38:20 +09:00
kngwyu
67a98d6c4a
Remove unnecessary Box
2020-01-07 17:37:29 +09:00
kngwyu
f26e07cfd6
Replace IntoInitializer<T> with Into<PyClassInitializer<T>>
2020-01-07 13:08:41 +09:00
kngwyu
b602b4bf6c
Enhance documentation and tests around #[new]
2020-01-07 12:49:36 +09:00
David Hewitt
60edeb889e
Simplify IntoInitializer
2020-01-06 13:19:58 +00:00
kngwyu
d22b03edde
Bump version to 0.8.5
2020-01-05 16:39:18 +09:00
kngwyu
18e565fab5
New PyClassInitializer
2020-01-05 16:01:05 +09:00
kngwyu
8f8785d7c2
Merge branch 'master' into pyclass-new-layout
2019-12-29 23:51:51 +09:00
kngwyu
766a520a10
Documentation enhancement
2019-12-29 00:02:48 +09:00
Alexander Niederbühl
3fae391a3c
Ignore missing # Safety
section in ffi module
2019-12-28 03:54:41 +01:00
Guillaume Desmottes
6f202efa59
dict: implement FromPyObject for BTreeMap
2019-12-24 18:53:19 +05:30
Guillaume Desmottes
ea7a384999
dict: implement FromPyObject for HashMap
...
Based on code from Ben Avrahami on https://github.com/PyO3/pyo3/issues/516
2019-12-24 18:53:00 +05:30
kngwyu
58590393c5
Fix accidently changed file permission
2019-12-24 12:27:22 +09:00
kngwyu
ea51756933
Resolve some clippy complains
2019-12-23 18:05:06 +09:00
kngwyu
d5cff058ef
Fix documents and a clippy warning
2019-12-23 02:09:36 +09:00
kngwyu
acb1120c55
Fix examples with the new #[new] API
2019-12-22 23:59:28 +09:00
kngwyu
e2dc843de5
Fix a corner case for PyClassInitializer
2019-12-22 23:54:41 +09:00
kngwyu
efa16a6dc7
Fix documents accompanied by PyClassShell
2019-12-22 19:41:25 +09:00
kngwyu
6b84401126
Make it enable to safely inherit native types
2019-12-21 23:28:55 +09:00
kngwyu
8175d6f36a
Merge branch 'master' into pyclass-new-layout
2019-12-19 16:12:45 +09:00
David Hewitt
0b45135ff6
Fix documentation typo
2019-12-17 09:42:00 +00:00
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
d8a4ecb476
Bump version to 0.8.4
2019-12-14 15:20:55 +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
Simonas Kazlauskas
2ba887a8cf
Fix docs on how to obtain object from PyErr
2019-12-05 00:56:10 +02: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
8550e0f575
Remove #[init] attribute
2019-10-31 19:39:53 +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
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
Alexander Niederbühl
04dece4804
Move PyBytes from string.rs into own file
2019-10-26 00:56:14 +02: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
Alexander Niederbühl
defa43015a
Fix handling of invalid utf-8 sequences in PyString::to_string_lossy
2019-10-24 22:45:32 +02:00
ijl
caf4713b3a
FFI for PEP 590 Vectorcall
...
https://www.python.org/dev/peps/pep-0590/
This was tested on 3.7 using _PyCFunctionFast and 3.8
using PyObject_Vectorcall. Extending pyo3-derive-backend
to generate code using vectorcall is not done here.
This exposes PyObject_Vectorcall with a link_name to the
underscored name on 3.8 because it is expected to be stabilized
on 3.9.
This fixes the "fast" objects being new in 3.7, not 3.6.
2019-10-23 21:40:38 +00:00
Alexander Niederbühl
7a4909bdc7
Guard against PyUnicode_AsUTF8AndSize returning null
2019-10-23 00:39:47 +02:00
Alexander Niederbühl
b0925e1109
Add conversion traits for PyBytes
2019-10-20 14:42:12 +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
Jacob Lifshay
f55037c377
switch to using macro for test & change test name
2019-10-18 16:20:16 -07:00
Jacob Lifshay
85492842ac
Fix off-by-one error in FromPyObject for BigInt
...
Fixes #629
2019-10-14 22:31:22 -07:00
kngwyu
d57f2423c8
Fix PySequenceProtocol::set_item
2019-10-12 21:03:21 +09:00
kngwyu
ee69ffd0f0
Support TryFromSliceError/TryFromIntError -> PyErr conversion
2019-10-12 17:25:28 +09:00
kngwyu
13ccdbee84
Implement IntoPy<PyObject> for BigInts
2019-10-12 15:13:09 +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
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
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
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
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
kngwyu
a344999526
[DOC] Add Python from Rust section in the guide
2019-09-23 21:44:42 +09:00
kngwyu
35851b7ff9
Fix documents following the review comment
2019-09-15 22:17:36 +09: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
kngwyu
46ba019829
Address clippy warning(to_args->from_err_args)
2019-09-07 16:07:24 +09:00
kngwyu
a82726a240
Reguire GIL before constructing PyErr from Rust value
2019-09-07 15:38:59 +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
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
a3cde076f4
Replace pyo3-pack with maturin
2019-09-06 01:12:37 +02:00
konstin
a3e41cc819
Release 0.8.0
2019-09-05 13:18:50 +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
kngwyu
df44e500a9
Remove py from parse_fn_args's args(to address clippy warning)
2019-09-02 23:05:42 +09:00