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
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
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
David Hewitt
01a74b2546
Improve comment in iterator.rs
2020-05-20 20:08:23 +01:00
David Hewitt
2813d2e6c9
Add conversion table to guide
2020-05-19 22:22:38 +01:00
Omer Katz
6f9048cd8f
Add FFI definition for PyObject_AsFileDescriptor ( #938 )
...
Add FFI definition for PyObject_AsFileDescriptor
Co-authored-by: David Hewitt <1939362+davidhewitt@users.noreply.github.com>
2020-05-19 22:14:53 +01:00
Yuji Kanagawa
c393d4ad9f
Merge pull request #936 from davidhewitt/optional-bool
...
Fix passing explicit None to pyfunction with default
2020-05-18 11:23:35 +09:00
David Hewitt
5c5527dfec
Fix passing explicit None to pyfunction with default
2020-05-17 19:19:33 +01:00
Yuji Kanagawa
8e6398029d
Merge pull request #930 from davidhewitt/remove-managed-py-ref
...
Remove ManagedPyRef
2020-05-16 13:31:46 +09:00
Yuji Kanagawa
3a2d563f3f
Merge pull request #931 from davidhewitt/doc-pymodule-import
...
Add documentation for `PyModule::import`
2020-05-16 13:11:01 +09:00
David Hewitt
1e3a7f6f25
Add documentation for `PyModule::import`
2020-05-15 22:05:46 +01:00
David Hewitt
91d0dbceab
Remove ManagedPyRef
2020-05-15 21:38:40 +01:00
Yuji Kanagawa
da7a8fa2d5
Merge pull request #928 from PyO3/davidhewitt-patch-1
...
Fix changelog typo
2020-05-15 17:45:03 +09:00
David Hewitt
aa81e382be
Fix changelog typo
2020-05-15 09:01:23 +01:00
Yuji Kanagawa
45cb26d2f0
Merge pull request #926 from PyO3/release-0.10
...
Bump version to 0.10.1
2020-05-14 21:35:42 +09:00
kngwyu
837261c860
Bump version to 0.10.1
2020-05-14 20:57:51 +09:00
Yuji Kanagawa
bc3fac9999
Merge pull request #924 from davidhewitt/fix-deadlock
...
Fix deadlock in update_counts
2020-05-14 20:55:53 +09:00
kngwyu
465e83bb96
[travis] Do not install perftools since now grcov doesn't need it
2020-05-14 20:40:33 +09:00
kngwyu
2954342f6c
A tiny optimization in ReferencePool::update_counts
2020-05-14 20:03:14 +09:00
David Hewitt
509db11777
Use parking_lot::Mutex instead of spinlock
2020-05-14 09:14:30 +01:00
David Hewitt
3b1f720eb0
Fix deadlock in update_counts
2020-05-13 18:36:40 +01: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
Yuji Kanagawa
956ed52412
Merge pull request #920 from kngwyu/methods-impl-compat
...
Revert #889
2020-05-12 13:01:48 +09:00
kngwyu
9f8b7cd9bf
Revert #889
2020-05-12 00:10:49 +09:00
Yuji Kanagawa
3e61a58011
Merge pull request #917 from kngwyu/pymethods-nodefault
...
Use PyMethodsImpl instead of *ProtocolImpl::methods
2020-05-11 20:36:24 +09:00
kngwyu
69dba08b01
Use PyMethodsImpl instead of *ProtocolImpl::methods
2020-05-11 20:08:21 +09:00
Yuji Kanagawa
da22eecb5f
Merge pull request #897 from fusion-engineering-forks/macros-feature
...
Move macros into separate feature.
2020-05-11 11:01:46 +09:00
Yuji Kanagawa
f769fed83d
Merge pull request #918 from davidhewitt/issue-template
...
Clarify pyo3 version on issue template
2020-05-11 11:00:51 +09:00
Yuji Kanagawa
5e7ce9558e
Merge pull request #908 from davidhewitt/clone-pyobject
...
Add Clone for PyObject / Py<T>
2020-05-11 11:00:29 +09:00
David Hewitt
86af474a95
Add Clone for PyObject / Py<T>
2020-05-10 12:01:18 +01:00
David Hewitt
0550db7622
Clarify pyo3 version on issue template
2020-05-10 09:48:10 +01:00
Yuji Kanagawa
8e84721438
Merge pull request #893 from davidhewitt/safe_acquire_gil
...
Close soundness hole with acquire_gil
2020-05-09 19:03:15 +09:00
David Hewitt
8ffe8c58b3
Close soundness hole with acquire_gil
2020-05-09 10:41:41 +01:00
Mara Bos
dab8c2e4e7
Move macros into separate feature.
...
It's enabled by default to avoid breakage, but this allows compiling
pyo3 with a lot less dependencies in case the macros are not needed.
2020-05-09 11:27:30 +02:00
Yuji Kanagawa
818ebf7ddf
Merge pull request #914 from scalexm/const
...
Allow `#[classattr]` on associated constants
2020-05-09 13:18:55 +09:00