Commit Graph

4314 Commits

Author SHA1 Message Date
Georg Brandl f084ceb9b1 guide: fix duplicated example for #[new]
The second one was probably intended to show a fallible `#[new]`.

Also show that the method does not need to be named `new()`, which
is nice because `new()` can be used for a Rust-level constructor
if they differ.
2022-03-06 10:57:49 +01:00
David Hewitt 754edea81e
Merge pull request #2208 from PyO3/release-0.16.1
release: 0.16.1
2022-03-06 08:43:05 +00:00
David Hewitt 7056bae21f release: 0.16.1 2022-03-05 16:21:44 +00:00
David Hewitt 0f1b8dd43f
Merge pull request #2207 from davidhewitt/tidy-doctests
guide: tidy up doctests
2022-03-05 16:18:43 +00:00
Alex Gaynor 01d8f1e696
added missing proc-macro invocation to migration guide (#2209) 2022-03-05 15:46:36 +00:00
David Hewitt 2bd64c4962 guide: tidy up doctests 2022-03-04 22:50:12 +00:00
David Hewitt 576818dc0c
Merge pull request #2205 from JerzySpendel/typing
Remove typying
2022-03-04 21:38:41 +00:00
Jerzy Spendel eaa82b2856 Remove typying 2022-03-04 16:24:49 +01:00
messense 43d4f5e154
Merge pull request #2204 from messense/fixup-changelog
Fix up changelog entry for `#2197`
2022-03-04 21:24:33 +08:00
messense e4c5698671
Fix up changelog entry for `#2197` 2022-03-04 21:02:55 +08:00
messense ad2c1af9f7
Merge pull request #2201 from messense/aarch64-apple-darwin
Add aarch64-apple-darwin test to CI
2022-03-04 17:48:54 +08:00
Adam Reichold c339550a56
Merge pull request #2197 from PyO3/bump-hashbrown
Extend  optional dependency supported versions to include 0.12.
2022-03-04 10:41:50 +01:00
messense afe5221724
Fix cross compiling to aarch64 macOS 2022-03-04 17:22:50 +08:00
messense 4b65ad8d50
Add aarch64-apple-darwin test to CI 2022-03-04 16:23:09 +08:00
David Hewitt 25cb8acf03
Merge pull request #2203 from PyO3/vis_pyfn
changelog/guide: visibility is also important for wrap_pyfunction! now
2022-03-04 08:09:27 +00:00
Adam Reichold 2fa91ada40 Extend optional dependency supported versions to include 0.12. 2022-03-04 08:30:15 +01:00
Georg Brandl 6bc8943df5 changelog/guide: visibility is also important for wrap_pyfunction! now
Fixes #2202
2022-03-04 07:48:41 +01:00
Bruno Kolenbrander 39534ba96d
Make gil tests not racy (#2190)
* Make tests not racy

* be a bit more resilient to other tests
2022-03-03 12:33:21 +01:00
David Hewitt 6fda258f01
Merge pull request #2198 from PanQL/fix-interpreter-script
use platform.system to check if it is on windows
2022-03-03 09:05:02 +00:00
David Hewitt 5f39e483c5
Merge pull request #2196 from davidhewitt/more-clippy
clippy: enable some more lints
2022-03-03 08:58:41 +00:00
David Hewitt 84cb8cdb6e add changelog for 2198 2022-03-03 07:34:01 +00:00
David Hewitt ddf13ea98f clippy: enable some more lints 2022-03-03 07:23:28 +00:00
David Hewitt 310c73b8a5
Merge pull request #2199 from PyO3/docsrs-resolve-config
Enable the resolve-config feature of pyo3-build-config on docs.rs to make the dependent functionality visible.
2022-03-01 22:01:42 +00:00
Adam Reichold 12be3f219d Enable the resolve-config feature of pyo3-build-config on docs.rs to make the dependent functionality visible. 2022-03-01 10:31:38 +01:00
PanQL 5ac495e547 use platform.system to check if it is on windows 2022-03-01 17:26:19 +08:00
David Hewitt 537c7114c5
Merge pull request #2174 from PyO3/release-0.16
release: 0.16.0
2022-02-27 23:41:03 +00:00
David Hewitt 4c434a21bd release: 0.16.0 2022-02-27 20:28:51 +00:00
David Hewitt eab6e7b498
Merge pull request #2192 from davidhewitt/misc-0.16-fixes
misc: tidy ups pre 0.16
2022-02-27 10:20:53 +00:00
David Hewitt b59ee9b54b misc: tidy ups pre 0.16 2022-02-27 10:02:28 +00:00
David Hewitt 1ed9a73f0f
Merge pull request #2187 from PyO3/getattribute
Protocols: implement __getattribute__
2022-02-26 21:02:12 +00:00
Georg Brandl dc4f114d67 Address review comments 2022-02-26 20:10:33 +01:00
Georg Brandl 0678f11266 Protocols: implement __getattribute__
converting tp_getattro to a shared slot

Fixes #2186
2022-02-26 20:05:50 +01:00
Georg Brandl 03dc96bff1
Py/PyAny: remove PartialEq impl and add is() (#2183) 2022-02-25 19:39:45 +00:00
Tommaso Thea Cioni 487345979b
Added `eq`, `ne`, `gt` etc. methods. (#2175) 2022-02-25 18:52:20 +01:00
David Hewitt 1e1d6767d8
Merge pull request #2143 from davidhewitt/pypy-3.9-dev
pypy: support 3.9
2022-02-25 08:39:39 +00:00
David Hewitt efbf92bd52 pypy: don't allow abi to be adjusted by abi3 flag 2022-02-25 07:28:54 +00:00
David Hewitt b84309b67d ffi: add missing definition PyCMethod_New 2022-02-25 07:28:52 +00:00
David Hewitt f3df59c76b pypy: include minor version in library on Python 3.9 2022-02-25 07:28:22 +00:00
mejrs 39bd9991e8 Add some underscores 2022-02-25 07:28:22 +00:00
mejrs 071c31f140 Undo rename 2022-02-25 07:28:22 +00:00
David Hewitt f98f116131 pypy: support released 3.9 2022-02-25 07:28:22 +00:00
David Hewitt 089fea1f3c ci: add pypy 3.9 dev 2022-02-25 07:28:22 +00:00
David Hewitt 7c865fcc25
Merge pull request #2173 from davidhewitt/deprecate-pyproto
pyproto: deprecate protocol traits
2022-02-24 23:54:40 +00:00
David Hewitt 15046a2812
Merge pull request #2181 from RicoHageman/from_py_with_tuple_struct
Add support for `from_py_with` on struct tuples and enums
2022-02-24 23:29:18 +00:00
David Hewitt 424644181b pymethods: add support for inplace concat & repeat 2022-02-24 23:07:24 +00:00
Rico Hageman ed698c4b43 Add documentation related to from_py_with for the FromPyObject trait 2022-02-24 22:54:30 +01:00
David Hewitt 3d7080b0b5
Merge pull request #2184 from davidhewitt/rust-1.59
rust: clippy fixes 1.59
2022-02-24 21:21:04 +00:00
Rico Hageman fc186cdb3b Remove item annotation in tuple struct 2022-02-24 22:20:54 +01:00
David Hewitt 642fe5bb56 rust: clippy fixes 1.59 2022-02-24 20:17:05 +00:00
Rico Hageman 76233e1924 Address pull request comments 2022-02-24 11:27:53 +01:00