pyo3/newsfragments
bors[bot] 28814f2978
Merge #3055
3055: Fix compile error when trying to use static slot methods, fixes: #3039 r=davidhewitt a=willstott101

Whilst having static slot methods is of dubious value in the first place, there's little reason not to support it by bringing the different function call macros more in-line with each other.

I had no idea which test file to use so I just made a new one... `test_methods.rs` has no slots in and the test files that do use slots seem to be specific to their protocol. Let me know if you'd like the test somewhere else.

Thanks!

Co-authored-by: Will Stott <willstott101@gmail.com>
2023-03-23 07:23:38 +00:00
..
.gitignore use towncrier to generate CHANGELOG 2022-09-08 07:58:53 +01:00
2899.added.md Provide a special purpose FromPyObject impl to efficiently and safely get a byte slice from either bytes or byte arrays. 2023-02-22 22:07:59 +01:00
2939.changed.md Disable default features of `chrono` 2023-02-09 21:27:31 +08:00
2944.changed.md optimize sequence conversion for list and tuple 2023-02-15 08:28:29 +00:00
2947.changed.md change PyModule::add_class to return an error if class creation fails 2023-02-14 22:08:35 +00:00
2952.fixed.md update reference pool counts at the end of allow_threads to avoid use-after-free 2023-02-21 08:44:48 +00:00
2954.changed.md optimize mapping conversion for dict 2023-02-15 08:27:18 +00:00
2961.fixed.md docs: fix typo in method name 2023-02-18 22:02:05 +01:00
2979.changed.md allow `create_exception!` to place the exception in a `dotted.module` 2023-02-22 20:08:53 +00:00
2990.fixed.md Fix `clippy::redundant_closure` lint firing for pyfunction defaults 2023-02-27 22:10:06 +00:00
2993.fixed.md fix `non_snake_case` lint for `#[pyfunction]` generated code 2023-02-28 08:44:17 +00:00
3009.fixed.md Remove stale references to tox.ini from template substitution scripts. 2023-03-05 09:17:34 +01:00
3014.added.md feat: add #[pyo3(get, set)] for Cell 2023-03-09 23:09:30 +00:00
3031.fixed.md add newsfragment 2023-03-10 10:16:24 +11:00
3036.fixed.md fix const-ness of some FFI name & doc members 2023-03-10 16:02:52 +00:00
3042.added.md `PyList::as_tuple()` -> `PyList::to_tuple()` 2023-03-12 16:27:15 +00:00
3044.added.md Add `PyTuple::to_list` 2023-03-18 14:44:45 +00:00
3055.fixed.md Fix compile error when trying to use static slot methods 2023-03-18 11:16:52 +00:00