David Hewitt
a5810eaffa
Merge pull request #1619 from birkenfeld/fastcall
...
Implement METH_FASTCALL for pyfunctions.
2021-06-05 12:32:16 +01:00
Georg Brandl
3e8d003faf
Implement METH_FASTCALL for pyfunctions and pymethods.
2021-06-05 12:57:22 +02:00
David Hewitt
97d6f15b32
Merge pull request #1626 from alonblade/cross-sysconfig
...
build.rs: if found more than one candidate, filter on arch
2021-06-05 09:29:00 +01:00
David Hewitt
b3d3be600b
Merge pull request #1655 from davidhewitt/bench-tuple-new
...
bench_tuple: add benchmark for `PyTuple::new`
2021-06-05 09:27:40 +01:00
messense
f49f4440b4
Merge pull request #1654 from messense/pathlib
...
Add support for extracting PathBuf from pathlib.Path
2021-06-05 15:49:30 +08:00
David Hewitt
681f9ccefa
bench_tuple: add benchmark for `PyTuple::new`
2021-06-05 08:46:05 +01:00
David Hewitt
3292ccf5e4
Merge pull request #1653 from PyO3/pytuple_fast
...
PyTuple: use fast macros on !abi3
2021-06-05 08:10:42 +01:00
messense
bd1045e289
Add support for extracting PathBuf from pathlib.Path
2021-06-05 14:59:26 +08:00
Georg Brandl
90188c6917
PyTuple: use fast macros on !abi3
...
They were already defined, but not used so far.
2021-06-05 08:36:40 +02:00
David Hewitt
81934c5684
Merge pull request #1652 from messense/pytest-bench
...
Run pytest pyo3-benchmarks on CI
2021-06-05 07:21:02 +01:00
David Hewitt
15366b9b48
Merge pull request #1651 from davidhewitt/tuple-get-set
...
pyclass: allow `#[pyo3(get, set, name = "foo")]`
2021-06-04 19:26:51 +01:00
messense
9bc77400eb
Run pytest pyo3-benchmarks on CI
2021-06-04 23:10:48 +08:00
David Hewitt
c9ce569d29
Merge pull request #1639 from messense/bench
...
Add automated continuous benchmarking
2021-06-04 14:34:01 +01:00
messense
c4c5324a73
Add automated continuous benchmarking
2021-06-04 20:46:31 +08:00
David Hewitt
d011467e63
pyclass: allow `#[pyo3(get, set, name = "foo")]`
2021-06-04 11:30:40 +01:00
David Hewitt
106cf25991
Merge pull request #1645 from mejrs/pyo3get-faq
...
faq: add section about pyo3(get) cloning fields
2021-06-03 21:41:34 +01:00
mejrs
dbf9a91a8b
mark toml field as toml
2021-05-31 21:05:52 +02:00
mejrs
e2cb176f6c
mark non-rust code as text fields
2021-05-31 20:58:38 +02:00
mejrs
63e6d66ffb
add faq doctest
2021-05-31 20:55:18 +02:00
mejrs
bf2329557e
move num_bigint_impl to own module
2021-05-31 20:42:13 +02:00
mejrs
161f1bd678
faq: add section about pyo3(get) cloning fields
2021-05-31 17:16:25 +02:00
Georg Brandl
d680fbee0a
Merge pull request #1643 from mejrs/main
2021-05-31 15:14:31 +02:00
mejrs
d86559b163
move manual builds to its own header
2021-05-31 12:39:00 +02:00
mejrs
088ad61df2
removed trailing space
2021-05-30 15:48:53 +02:00
mejrs
38642aa397
clarify multiple-pymethods' supported platforms
2021-05-30 14:20:08 +02:00
mejrs
ce3b0d1dc0
add renaming method to guide
2021-05-30 14:13:24 +02:00
Alon Levy
e5542f2214
pyo3-build-config: if found more than one candidate, filter on arch
...
If we got more then one file, only take those that contain the arch name.
For ubuntu 20.04 with host architecture x86_64 and a foreign architecture of armhf
this reduces the number of candidates to 1:
$ find /usr/lib/python3.8/ -name '_sysconfigdata*.py' -not -lname '*'
/usr/lib/python3.8/_sysconfigdata__x86_64-linux-gnu.py
/usr/lib/python3.8/_sysconfigdata__arm-linux-gnueabihf.py
CHANGELOG.md: add entry for cross-sysconfigdata filter on arch
commit changelog:
1. initial
2. if filtered list is empty, use pre filtered.
3. clippy is_empty and cloned
2021-05-30 10:07:03 +03:00
mejrs
b703aa56de
Update src/lib.rs
...
Co-authored-by: Georg Brandl <georg@python.org>
2021-05-30 02:47:22 +02:00
mejrs
c13a1b0060
Update src/lib.rs
...
Co-authored-by: Georg Brandl <georg@python.org>
2021-05-30 02:47:15 +02:00
mejrs
e8f4abe469
Update src/lib.rs
...
Co-authored-by: Georg Brandl <georg@python.org>
2021-05-30 02:47:07 +02:00
mejrs
3228b301e0
Update src/lib.rs
...
Co-authored-by: Georg Brandl <georg@python.org>
2021-05-30 02:20:45 +02:00
mejrs
435a2bdce5
Update src/lib.rs
...
Co-authored-by: Georg Brandl <georg@python.org>
2021-05-30 02:20:39 +02:00
mejrs
1922e98273
Update src/lib.rs
...
Co-authored-by: Georg Brandl <georg@python.org>
2021-05-30 02:20:33 +02:00
mejrs
ace6682e5a
Update src/lib.rs
...
Co-authored-by: Georg Brandl <georg@python.org>
2021-05-30 02:20:27 +02:00
David Hewitt
8bf3adee3a
Merge pull request #1641 from 1tgr/for-each
...
Simplify code generated for for_each_method_def and for_each_proto_slot
2021-05-29 16:05:10 +01:00
Tim Robinson
1ba32178dd
Method and slot visitors accept slices instead of individual items
2021-05-29 09:38:15 +01:00
Tim Robinson
030aa43544
Simplify code generated for for_each_method_def and for_each_proto_slot
2021-05-29 09:10:38 +01:00
mejrs
21f79a204d
discard trailing whitespace
2021-05-29 01:42:39 +02:00
mejrs
22d080e428
improve librs documentation
2021-05-29 01:39:57 +02:00
messense
5446fe2062
Merge pull request #1636 from messense/criterion
...
Migrate all benchmarks to criterion
2021-05-27 07:52:23 +08:00
messense
49e67d7886
Merge pull request #1638 from erikjohnston/main
...
Fix memory leak when converting to u128 and i128
2021-05-26 21:26:09 +08:00
Erik Johnston
a56f23d7f2
Add changelog entry
2021-05-26 12:23:47 +01:00
Erik Johnston
672cf62272
Fix memory leak when converting to u128 and i128
2021-05-26 12:19:46 +01:00
messense
5523ad6d5b
Merge pull request #1633 from davidhewitt/async-fn-error
...
pyfunction: better error message with `async fn`
2021-05-26 14:33:52 +08:00
messense
fa07a5e377
Migrate all benchmark to criterion
2021-05-26 14:25:00 +08:00
messense
0acc8bdd12
Merge pull request #1630 from davidhewitt/module-init
...
pymodule: tidy up module init
2021-05-26 12:57:47 +08:00
messense
b3946c3f78
Merge pull request #1629 from davidhewitt/changelog-fixes
...
changelog: fix missing bits
2021-05-25 18:36:40 +08:00
David Hewitt
9f74336bc9
pyfunction: better error message with `async fn`
2021-05-25 11:32:52 +01:00
David Hewitt
3e87ea3593
pymodule: don't call PyEval_InitThreads
2021-05-25 11:02:16 +01:00
David Hewitt
355bd0c336
pymodule: tidy up module init
2021-05-25 10:54:16 +01:00