Commit graph

2229 commits

Author SHA1 Message Date
David Hewitt a1dbfa8c8c Add pyo3::once_cell::GILOnceCell 2020-06-18 18:53:32 +01:00
Yuji Kanagawa 390ff5f17f
Merge pull request #961 from kngwyu/slot-provider
Object protocols without specialization
2020-06-18 17:19:39 +09:00
kngwyu 8a0c9bfcf5 Add a CHANGELOG entry for 961 2020-06-18 16:39:22 +09:00
Yuji Kanagawa a044f3c322
Merge branch 'master' into slot-provider 2020-06-18 15:49:56 +09:00
Yuji Kanagawa 6ea834526b
Merge pull request #976 from davidhewitt/prefer-py
Add PyClass borrow methods to Py
2020-06-18 15:48:36 +09:00
kngwyu 1207c2d03a Make test_await more robust 2020-06-18 01:58:01 +09:00
David Hewitt 925986c706 Add PyCell::borrow shortcuts to Py 2020-06-17 08:58:32 +01:00
kngwyu fc3fa708b0 Add more comments for #[pyproto] related parts 2020-06-17 13:20:50 +09:00
Yuji Kanagawa 72a0dee03c
Merge pull request #980 from davidhewitt/changelog-deps
Add CHANGELOG entries for num crate version bumps
2020-06-17 11:22:31 +09:00
kngwyu 2a69367888 Mark protocols setters as doc(hidden) 2020-06-17 02:19:02 +09:00
kngwyu f7fa008159 Use Relaxed ordering since setters are called by a single thread 2020-06-17 02:17:59 +09:00
David Hewitt 93608bf031
Merge pull request #979 from kngwyu/aspyref-example
Fix AsPyRef example
2020-06-15 20:17:46 +01:00
David Hewitt e377afa5de Add CHANGELOG entries for num crate version bumps 2020-06-15 20:14:56 +01:00
Yuji Kanagawa a524699301
Merge pull request #978 from PyO3/dependabot/cargo/num-bigint-0.3
Update num-bigint requirement from 0.2 to 0.3
2020-06-15 23:40:14 +09:00
dependabot-preview[bot] f8fd478a00
Update num-bigint requirement from 0.2 to 0.3
Updates the requirements on [num-bigint](https://github.com/rust-num/num-bigint) to permit the latest version.
- [Release notes](https://github.com/rust-num/num-bigint/releases)
- [Changelog](https://github.com/rust-num/num-bigint/blob/master/RELEASES.md)
- [Commits](https://github.com/rust-num/num-bigint/compare/num-bigint-0.2.0...num-bigint-0.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-15 11:57:30 +00:00
Yuji Kanagawa 03e023959c
Merge pull request #977 from PyO3/dependabot/cargo/num-complex-0.3
Update num-complex requirement from 0.2 to 0.3
2020-06-15 20:56:03 +09:00
kngwyu 0440b8df81 Fix AsPyRef example 2020-06-15 18:07:21 +09:00
Nateckert 4f8c2e767b
Doc trait exposition (#964)
Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
2020-06-15 09:58:37 +01:00
dependabot-preview[bot] cc0f59077f
Update num-complex requirement from 0.2 to 0.3
Updates the requirements on [num-complex](https://github.com/rust-num/num-complex) to permit the latest version.
- [Release notes](https://github.com/rust-num/num-complex/releases)
- [Changelog](https://github.com/rust-num/num-complex/blob/master/RELEASES.md)
- [Commits](https://github.com/rust-num/num-complex/compare/num-complex-0.2.0...num-complex-0.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-15 08:48:53 +00:00
Yuji Kanagawa 3e905eb396
Merge pull request #970 from davidhewitt/py-gil-safe
Cleanups to ensure GIL-safety of Py<T> and PyObject methods
2020-06-15 13:46:32 +09:00
kngwyu 2e1ed2c3c8 Descr get/set now take receiver 2020-06-15 13:43:46 +09:00
David Hewitt a85d157111 Cleanups to ensure GIL-safety of Py<T> and PyObject methods 2020-06-14 16:37:34 +01:00
kngwyu 8c4162dfeb Async methods now takes Receiver 2020-06-14 22:43:07 +09:00
Yuji Kanagawa 090204c2b2
Merge pull request #972 from PyO3/davidhewitt-patch-4
Clarify wording in guide
2020-06-13 20:14:06 +09:00
Yuji Kanagawa f2f0ccd9e1
Merge pull request #974 from kngwyu/doc-comment-for-py
Revert soft-duplicated for Py::new
2020-06-13 19:38:55 +09:00
Yuji Kanagawa bbdca6b0bd
Merge pull request #967 from davidhewitt/bytearray-as-bytes
Add accessor methods to `PyByteArray`
2020-06-13 16:53:22 +09:00
kngwyu 1dc77d5a29 Revert soft-duplicated for Py::new 2020-06-13 16:49:25 +09:00
Yuji Kanagawa 90a2ec305e
Merge pull request #971 from davidhewitt/pytuple-slice-pyany
Change return type of `PyTuple::slice` to `&[&PyAny]`
2020-06-13 16:44:38 +09:00
David Hewitt f58398d6e3
Rewrite sentence one last time 2020-06-13 08:15:30 +01:00
David Hewitt e73d696f8c
Clarify wording in guide 2020-06-13 08:12:21 +01: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 05effe26f1 Avoid function definition in setters for readability 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 8a85feca97 Change return type of PyTuple::slice to &[&PyAny] 2020-06-12 05:21:27 +01:00
David Hewitt 21d365f7d4 Add accessor methods to PyByteArray 2020-06-12 05:01:09 +01:00
Yuji Kanagawa 7a7271319c
Merge pull request #966 from davidhewitt/pyclass-send
Require Send for #[pyclass] (no compilefail test)
2020-06-09 19:25:54 +09:00
Yuji Kanagawa 4317f16a99
Merge pull request #968 from PyO3/davidhewitt-patch-3
Tidy up docs for from_borrowed_ptr methods
2020-06-09 19:25:16 +09:00
David Hewitt bd7869002f
Tidy up docs for from_borrowed_ptr methods
The release pool doesn't exist for borrowed objects any more, so just tidied these docs up.
2020-06-09 08:45:58 +01:00
Yuji Kanagawa f19e39ab40
Merge pull request #965 from PyO3/davidhewitt-patch-2
Improve error messages in pyimpl.rs
2020-06-09 15:52:30 +09:00
David Hewitt 0f5a349fbd
Improve error messages in pyimpl.rs 2020-06-08 20:14:56 +01:00
David 33617bfffc Require Send for #[pyclass] 2020-06-08 02:06:15 +01:00
Yuji Kanagawa 798d72e6a6
Merge pull request #962 from Alexander-N/guide
Update README and remove Getting Started section from user guide
2020-06-07 22:13:32 +09:00
Alexander Niederbühl bfe212b3de Move doc comments before attributes 2020-06-07 14:06:15 +02:00
Yuji Kanagawa 15c40afe07
Merge pull request #963 from PyO3/refactor-travis
Use Deployment v2 API in travis
2020-06-07 13:20:19 +09:00
Alexander Niederbühl 75d44ca296 Remove getting started chapter from user guide
Since it's exactly the same content as in the README.
2020-06-07 00:26:17 +02:00
Alexander Niederbühl 207e177a27 Update README.md with content from user guide 2020-06-07 00:21:56 +02:00
kngwyu 7501b16bc2 Use Deployment v2 API in travis 2020-06-06 23:59:15 +09:00