Commit Graph

2201 Commits

Author SHA1 Message Date
David Hewitt a85d157111 Cleanups to ensure GIL-safety of Py<T> and PyObject methods 2020-06-14 16:37:34 +01: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
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
Yuji Kanagawa d7a4c94282
Merge pull request #960 from PyO3/refactor-travis
Refactor travis.yml
2020-06-06 16:35:43 +09:00
Yuji Kanagawa 34a5e8c30b
Merge pull request #959 from Alexander-N/allow-threads
User Guide: Rewrite parallelism chapter
2020-06-06 16:35:02 +09:00
kngwyu bf6e5c45e5 Refactor travis.yml 2020-06-06 14:56:16 +09:00
Alexander Niederbühl bbf1c39cea Address review comments 2020-06-05 21:24:03 +02:00
Alexander Niederbühl eca93c3ff8 Ignore doctests 2020-06-05 21:02:52 +02:00
Alexander Niederbühl e38a077c29 Fix typos 2020-06-05 20:54:38 +02:00
Alexander Niederbühl cbe3e574b7 Rewrite parallelism chapter in guide 2020-06-05 20:25:07 +02:00
Alexander Niederbühl d2c7645bad Add benchmark for Python threaded word count
Add benchmark where the sequential Rust version of the word count is
executed twice to demonstrate parallelism with Python threads.  Also
slightly simplify the benchmark functions.
2020-06-05 20:22:20 +02:00
Alexander Niederbühl bafe269dde Set debug to `False` in word-count example 2020-06-05 16:40:29 +02:00
Alexander Niederbühl de9aae1e82 Use string slices as function arguments
Also use the same names as parameters.
2020-06-05 16:40:29 +02:00
Alexander Niederbühl eadd7b1081 Remove word-count from examples 2020-06-05 16:40:29 +02:00
Alexander Niederbühl 4c55fa6b38 Remove unnecessary wrapping of test function 2020-06-05 16:40:29 +02:00
Alexander Niederbühl eb73105625 Make benchmarks more comparable 2020-06-05 16:40:29 +02:00
Yuji Kanagawa d674b5ff34
Merge pull request #952 from kngwyu/typed-pybuffer
Typed PyBuffer
2020-06-05 23:08:07 +09:00
Yuji Kanagawa be1b7045af
Merge pull request #955 from Alexander-N/clippy
Small cleanup
2020-06-05 21:53:21 +09:00
Alexander Niederbühl bcf48c0bd2 Fix clippy lints 2020-06-05 13:53:01 +02:00
Alexander Niederbühl 468bb765bb Add checking of examples with clippy 2020-06-05 13:51:51 +02:00
Alexander Niederbühl 7eb9afbac2 Clean up Makefile 2020-06-05 13:51:15 +02:00
Yuji Kanagawa 5939362e72
Fix docs and comments based on the review
Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
2020-06-05 17:48:43 +09:00
kngwyu 688021315e Typed PyBuffer 2020-06-04 22:03:53 +09:00
Yuji Kanagawa 75b2b62dd9
Merge pull request #951 from PyO3/pymethod-refactor
Rename PyMethodsImpl -> PyMethods
2020-06-03 19:09:52 +09:00
kngwyu 69efb0980f Rename PyMethodsImpl -> PyMethods 2020-06-03 13:01:37 +09:00
David Hewitt 435536060b
Merge pull request #943 from fusion-engineering-forks/atexit
Call Py_Finalize at exit using libc::atexit.
2020-05-24 14:13:29 +01:00
Mara Bos febccbf6e7 Call Py_Finalize at exit using libc::atexit.
This makes sure buffers are flushed, threads are joined, etc. when
exiting the process.
2020-05-24 14:56:54 +02:00
Yuji Kanagawa 072be6ce83
Merge pull request #934 from davidhewitt/get-set-cleanups
Remove GetPropertyValue & improve property docs
2020-05-22 13:05:31 +09:00
David Hewitt 29c93c87c7 Remove GetPropertyValue 2020-05-21 18:06:24 +01:00
Yuji Kanagawa 89fe62eb80
Merge pull request #942 from davidhewitt/iterator-comment
Improve comment in iterator.rs
2020-05-21 16:21:01 +09:00
Yuji Kanagawa 7fd35b2fb6
Merge pull request #937 from davidhewitt/doc-conversion-table
Add conversion table to guide
2020-05-21 16:18:46 +09:00