David Hewitt
0764362d17
Remove hidden PyErr::restore_and_minus1 and PyErr::restore_and_null
2020-07-19 22:39:41 +01:00
David Hewitt
c6aa7a8a47
Fix clippy warning of useless conversion
2020-07-17 19:06:56 +01:00
kngwyu
6cbe9ff30d
Bump version to 0.11.1
2020-06-30 14:53:55 +09:00
kngwyu
d76fe7835a
Introduce #[pyclass(unsendable)]
2020-06-30 12:30:17 +09:00
kngwyu
42f592be4c
Fix clippy warning
2020-06-28 14:11:11 +09:00
kngwyu
fd94a0d55c
Bump version to 0.11.0
2020-06-27 23:59:44 +09:00
David Hewitt
c3e993e5a6
Apply suggestions from code review
...
Co-authored-by: Yuji Kanagawa <yuji.kngw.80s.revive@gmail.com>
2020-06-27 14:56:15 +01:00
David Hewitt
e140b729fc
Allow #[getter] and #[setter] functions to take PyRef
2020-06-27 14:55:22 +01:00
David Hewitt
a9c7e12be0
Allow skipping the return type completely for #[pyproto]
methods returning ()
.
2020-06-23 11:51:02 +01:00
David Hewitt
0c59b05e1f
Merge pull request #996 from davidhewitt/pyproto-simplifications
...
Refactor `#[pyproto]` Result types
2020-06-23 11:49:39 +01:00
David Hewitt
c7a4b4770f
Refactor #[pyproto]
Result types
2020-06-23 11:08:36 +01:00
Yuji Kanagawa
f757c99dac
Merge pull request #994 from scalexm/ptr
...
`LazyStaticType::get_or_init` returns an `*mut` instead of a `&` ref
2020-06-23 10:07:43 +09:00
scalexm
863c0001e1
LazyStaticType::get_or_init
returns an *mut
instead of a &
ref
2020-06-22 22:37:11 +02:00
David Hewitt
cc190c9ccd
Remove IntoPyResult
2020-06-22 17:19:00 +01:00
kngwyu
f053bc3881
Fix dealloc implementation to collectly use subtype's tp_free
2020-06-22 10:58:00 +09:00
kngwyu
b70ee9a5ad
Use subclass correctly in tp_new
2020-06-22 01:38:13 +09:00
Yuji Kanagawa
7075827a03
Merge pull request #969 from PyO3/poc-stable-rust
...
Stable Rust
2020-06-21 16:54:59 +09:00
David Hewitt
a1dbfa8c8c
Add pyo3::once_cell::GILOnceCell
2020-06-18 18:53:32 +01:00
kngwyu
a840ebbb5a
Support Rust 1.39.0
2020-06-18 19:59:40 +09:00
kngwyu
fc3fa708b0
Add more comments for #[pyproto] related parts
2020-06-17 13:20:50 +09:00
kngwyu
2e1ed2c3c8
Descr get/set now take receiver
2020-06-15 13:43:46 +09:00
kngwyu
8c4162dfeb
Async methods now takes Receiver
2020-06-14 22:43:07 +09:00
kngwyu
f32277163a
Move nb_bool under PyObjectProtocol again
2020-06-13 15:25:04 +09:00
kngwyu
ac2c51c774
Fix typo and revert unintended changes
2020-06-13 15:25:04 +09:00
kngwyu
d678093509
Remove specialization from async/sequence methods
2020-06-13 15:25:04 +09:00
kngwyu
0d082961aa
Remove specialization from gc/mapping/number protocols
2020-06-13 15:25:03 +09:00
kngwyu
7967874177
Remove specialization from basic/buffer/descr/iter protocols
2020-06-13 15:24:56 +09:00
David Hewitt
0f5a349fbd
Improve error messages in pyimpl.rs
2020-06-08 20:14:56 +01:00
David Hewitt
29c93c87c7
Remove GetPropertyValue
2020-05-21 18:06:24 +01:00
David Hewitt
5c5527dfec
Fix passing explicit None to pyfunction with default
2020-05-17 19:19:33 +01:00
kngwyu
837261c860
Bump version to 0.10.1
2020-05-14 20:57:51 +09:00
Yuji Kanagawa
7e4d1c41e3
Bump version to 0.10.0 ( #919 )
...
* Bump version to 0.10.0
* Apply suggestions from code review
Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
* Improve CHANGELOG completeness and messaging
* ObjectProtocol was in prelude
Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
2020-05-13 13:24:36 +09:00
kngwyu
9f8b7cd9bf
Revert #889
2020-05-12 00:10:49 +09:00
kngwyu
69dba08b01
Use PyMethodsImpl instead of *ProtocolImpl::methods
2020-05-11 20:08:21 +09:00
scalexm
f6ac9a0212
Allow #[classattr]
on associated constants
2020-05-08 22:30:49 +02:00
Yuji Kanagawa
d5eb8f0544
Merge pull request #911 from davidhewitt/remove-objectprotocol
...
Remove ObjectProtocol
2020-05-08 18:56:52 +09:00
David Hewitt
a5ebef4b2e
Remove ObjectProtocol; Add methods to PyAny and use Deref
2020-05-08 10:05:19 +01:00
scalexm
7b5a076680
Add #[classattr]
methods to define Python class attributes
2020-05-07 21:23:47 +02:00
David Hewitt
9a2d908342
Simplify callback code using callback_body! macro
2020-05-05 00:27:50 +01:00
kngwyu
816c50a649
Unify PyMethodsInventoryDispatch and PyMethodsProtocol
2020-05-02 17:48:25 +09:00
Martin Larralde
6ac1b0503c
Fix pattern matching style in pyo3-derive-backend
code
2020-04-19 13:05:46 +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
kngwyu
2cd466dc46
Bound 'py lifetime by GILPool when it's possible
2020-04-12 23:55:23 +09:00
Yuji Kanagawa
5add8d1dee
Merge branch 'master' into merge-0.9.2
2020-04-09 17:17:52 +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
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
77b4b9e67d
Refactor impl_method_proto
2020-03-28 17:19:15 +09:00