Commit Graph

3732 Commits

Author SHA1 Message Date
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
R2D2 1a8fec2e88 Added detailed TypeError messages to enums with derive(FromPyOjbect) 2021-05-31 17:38:15 +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
R2D2 4a99bfaaba Fixed tests after modifying TypeErrors originating from structs. Started work on TypeError message on Enums 2021-05-31 00:28:53 +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
R2D2 1843ff20fd Added support for enhanced errors for the FromPyObject trait derived on tuples and newtype structs/tuples 2021-05-28 00:38:32 +02:00
R2D2 8981b84b79 Added customizable conversion error message for type errors encounted in FromPyObject::extract 2021-05-28 00:24:47 +02:00
R2D2 d71d4329ae Changed format of TypeError messages 2021-05-27 22:36:19 +02:00
R2D2 f68ab481ba Added improved error messages to the derive FromPyObject macro for basic structs and enums 2021-05-27 15:42: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
David Hewitt f4dfafa07b changelog: fix missing bits 2021-05-25 07:32:47 +01:00
David Hewitt 9a4e7b5877
Merge pull request #1622 from davidhewitt/pyo3-build-config
pyo3-build-config: new crate to re-use build.rs across crates
2021-05-25 07:11:24 +01:00
David Hewitt 1e1605f0db pyo3-build-config: finish docs 2021-05-24 08:44:20 +01:00
David Hewitt cfdd535eea
Merge pull request #1610 from davidhewitt/pyfn-name
pyfn: deprecate name argument
2021-05-23 23:08:43 +01:00
David Hewitt 284ad1f98a pyo3-build-config: fix build 2021-05-21 23:05:36 +01:00
David Hewitt 6def8fe714 pyo3-build-config: check python version and architecture in PyO3 crate 2021-05-21 08:40:43 +01:00
David Hewitt 825ec08681 pyo3-build-config: docs wip 2021-05-21 08:34:51 +01:00
David Hewitt 7b72dd7a8a
Merge pull request #1621 from birkenfeld/callable_doc
Remove overly specific advice in `callable` docstring
2021-05-21 07:20:30 +01:00
David Hewitt c168466d1f
Merge pull request #1620 from mejrs/pyany
pyany documentation
2021-05-21 07:19:32 +01:00
Georg Brandl ff46b6f30a Reword advice on avoiding callable() 2021-05-20 16:46:07 +02:00
mejrs f0a6a062eb added suggested changes 2021-05-20 15:04:36 +02:00